[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>
这个提交包含在:
编写, GitHub 于 2024-12-06 22:37:45 -08:00 提交
1 父节点 bd33176966
当前提交 253c9adfc1
8 个文件已更改
+140 -54

没有与搜索条件相匹配的文件

@@ -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));
}