[SWDEV-509876] Remove buffer requirement from device counting service (#132)
* [SWDEV-509876] Remove buffer requirement from device counting service No longer require a buffer to be given when setting up device counting service. This is to reduce performance overhead in cases where immediate return of counting samples is being used (synchronous mode). * Missed file * Update source/include/rocprofiler-sdk/device_counting_service.h Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> * Update source/lib/rocprofiler-sdk/counters/controller.cpp Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> * Update source/lib/rocprofiler-sdk/counters/device_counting.cpp Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> * Fixes for build --------- Co-authored-by: Benjamin Welton <ben@amd.com> Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> Co-authored-by: Benjamin Welton <bewelton@amd.com>
This commit is contained in:
@@ -76,7 +76,9 @@ typedef void (*rocprofiler_device_counting_service_callback_t)(
|
||||
* @param [in] context_id context id
|
||||
* @param [in] buffer_id id of the buffer to use for the counting service. When
|
||||
* rocprofiler_sample_device_counting_service is called, counter data will be written
|
||||
* to this buffer.
|
||||
* to this buffer. If the input buffer id is null (i.e. `rocprofiler_buffer_id_t{.handle = 0}`), the
|
||||
* counter data will not be written to a buffer and will only be returned in the output_records of
|
||||
* rocprofiler_sample_device_counting_service
|
||||
* @param [in] agent_id agent to configure profiling on.
|
||||
* @param [in] cb Callback called when the context is started for the tool to specify what
|
||||
* counters to collect (rocprofiler_profile_config_id_t).
|
||||
|
||||
Reference in New Issue
Block a user