Skip to content

Commit

Permalink
Merge pull request #31 from stanmoore1/sts_unit
Browse files Browse the repository at this point in the history
Change memory unit in space-time-stack to kB
  • Loading branch information
ibaned authored Nov 21, 2017
2 parents fda1d9f + 648ab45 commit 543c144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/space-time-stack/kp_space_time_stack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,13 @@ struct Allocations {
#endif
{
std::stringstream ss;
ss << "MAX BYTES ALLOCATED: " << total_size << '\n';
ss << std::fixed << std::setprecision(1);
ss << "MAX MEMORY ALLOCATED: " << double(total_size)/1024.0 << " kB" << '\n'; // convert bytes to kB
#ifdef USE_MPI
ss << "MPI RANK WITH MAX MEMORY: " << rank << '\n';
#endif
ss << "ALLOCATIONS AT TIME OF HIGH WATER MARK:\n";
std::ios saved_state(nullptr);
ss << std::fixed << std::setprecision(1);
for (auto& allocation : alloc_set) {
auto percent = double(allocation.size) / double(total_size) * 100.0;
if (percent < 0.1) continue;
Expand Down

0 comments on commit 543c144

Please sign in to comment.