[AFAR VII] rocprofiler_sample_device_counting_service return data as part of API call (#57)

---------

Co-authored-by: Benjamin Welton <bewelton@amd.com>
Co-authored-by: Benjamin Welton <ben@amd.com>

[ROCm/rocprofiler-sdk commit: 253c9adfc1]
This commit is contained in:
Welton, Benjamin
2024-12-06 22:37:45 -08:00
committed by GitHub
parent 22b4e6739d
commit 1850de7ee1
8 changed files with 140 additions and 54 deletions
@@ -289,8 +289,11 @@ tool_init(rocprofiler_client_finalize_t, void* user_data)
rocprofiler_start_context(get_client_ctx());
while(exit_toggle().load() == false)
{
rocprofiler_sample_device_counting_service(
get_client_ctx(), {.value = count}, ROCPROFILER_COUNTER_FLAG_NONE);
rocprofiler_sample_device_counting_service(get_client_ctx(),
{.value = count},
ROCPROFILER_COUNTER_FLAG_NONE,
nullptr,
nullptr);
count++;
std::this_thread::sleep_for(std::chrono::milliseconds(50));
}