We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fda1d9f + 648ab45 commit 543c144Copy full SHA for 543c144
src/tools/space-time-stack/kp_space_time_stack.cpp
@@ -361,13 +361,13 @@ struct Allocations {
361
#endif
362
{
363
std::stringstream ss;
364
- ss << "MAX BYTES ALLOCATED: " << total_size << '\n';
+ ss << std::fixed << std::setprecision(1);
365
+ ss << "MAX MEMORY ALLOCATED: " << double(total_size)/1024.0 << " kB" << '\n'; // convert bytes to kB
366
#ifdef USE_MPI
367
ss << "MPI RANK WITH MAX MEMORY: " << rank << '\n';
368
369
ss << "ALLOCATIONS AT TIME OF HIGH WATER MARK:\n";
370
std::ios saved_state(nullptr);
- ss << std::fixed << std::setprecision(1);
371
for (auto& allocation : alloc_set) {
372
auto percent = double(allocation.size) / double(total_size) * 100.0;
373
if (percent < 0.1) continue;
0 commit comments