Add caching of category region for rocpd (#1420)

* Add caching of category region

Fix vaapi traces

Remove region_with_name

* Applied suggestions from code review
This commit is contained in:
Milan Radosavljevic authored and GitHub committed 2025-10-20 16:05:14 -04:00
1 bovenliggende 4a1a4aa472
commit 48fdcebf62
7 files changed
+102 -19

No files matched your search

@@ -551,11 +551,14 @@ cache_region(const rocprofiler_callback_tracing_record_t* record,
const std::string& args_str, const std::string& category)
{
auto callback_tracing_info =
trace_cache::get_metadata_registry().get_callback_tracing_info();
auto _name = std::string{ callback_tracing_info.at(record->kind, record->operation) };
trace_cache::get_buffer_storage().store(
trace_cache::entry_type::region,
record->thread_id,
static_cast<int32_t>(record->kind),
static_cast<int32_t>(record->operation),
_name.c_str(),
record->correlation_id.internal,
get_parent_stack_id(record->correlation_id),
start_timestamp,