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
Dieser Commit ist enthalten in:
1 Ursprung
4a1a4aa472
Commit
48fdcebf62
7 Dateien geändert
+102
-19
Keine Dateien entsprechen Ihrer Suche
+5
-2
@@ -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,
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren