ATT Agent fixes and improvements (#1011)

* Tidying ATT dispatch API. ATT Agent to be initialized with rest of profiler. Removing read_index-based wait.

* Formatting

* Adding some input validation

* Add perf test for agent

* Removing async
Этот коммит содержится в:
Giovanni Lenzi Baraldi
2024-08-15 13:57:13 -03:00
коммит произвёл GitHub
родитель 5bec9f66b6
Коммит fa1b9e67ab
11 изменённых файлов: 286 добавлений и 139 удалений
+5 -2
Просмотреть файл
@@ -321,7 +321,8 @@ start_context(rocprofiler_context_id_t context_id)
auto status = ROCPROFILER_STATUS_SUCCESS;
if(cfg->counter_collection) rocprofiler::counters::start_context(cfg);
if(cfg->thread_trace) cfg->thread_trace->start_context();
if(cfg->agent_thread_trace) cfg->agent_thread_trace->start_context();
if(cfg->dispatch_thread_trace) cfg->dispatch_thread_trace->start_context();
if(cfg->agent_counter_collection) status = rocprofiler::counters::start_agent_ctx(cfg);
#if ROCPROFILER_SDK_HSA_PC_SAMPLING > 0
if(cfg->pc_sampler) status = rocprofiler::pc_sampling::start_service(cfg);
@@ -355,7 +356,9 @@ stop_context(rocprofiler_context_id_t idx)
rocprofiler::counters::stop_context(const_cast<context*>(_expected));
}
if(_expected->thread_trace) _expected->thread_trace->stop_context();
if(_expected->agent_thread_trace) _expected->agent_thread_trace->stop_context();
if(_expected->dispatch_thread_trace)
_expected->dispatch_thread_trace->stop_context();
if(_expected->agent_counter_collection)
{