From 443b2d87799ea2de1b0a125695b7a2cc9f5a57d8 Mon Sep 17 00:00:00 2001 From: Giovanni LB Date: Mon, 5 Jun 2023 13:04:09 -0300 Subject: [PATCH] SWDEV-391596: Moved counters output to the same line as dispatch info Change-Id: I08076b4d4fd20cbb4632cf5cc18c4651caafe87c [ROCm/rocprofiler commit: e078d3704c9c4249363724c6ba957d3596d5454a] --- projects/rocprofiler/plugin/file/file.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocprofiler/plugin/file/file.cpp b/projects/rocprofiler/plugin/file/file.cpp index d19b1afe10..9be39686c8 100644 --- a/projects/rocprofiler/plugin/file/file.cpp +++ b/projects/rocprofiler/plugin/file/file.cpp @@ -355,7 +355,6 @@ class file_plugin_t { << std::to_string(profiler_record->timestamps.end.value) << ")"; // For Counters - *output_file << '\n'; if (profiler_record->counters) { for (uint64_t i = 0; i < profiler_record->counters_count.value; i++) { if (profiler_record->counters[i].counter_handler.handle > 0) { @@ -369,11 +368,12 @@ class file_plugin_t { session_id, ROCPROFILER_COUNTER_NAME, profiler_record->counters[i].counter_handler, &name_c)); *output_file << ", " << name_c << " (" - << std::to_string(profiler_record->counters[i].value.value) << ")\n"; + << std::to_string(profiler_record->counters[i].value.value) << ')'; } } } } + *output_file << '\n'; if (kernel_name_c) { free(const_cast(kernel_name_c)); }