rocprofv3 kernel renaming support + misc rocprofv3 updates (#992)
* Increase rocprofv3 tool buffer size
- 32 pages instead of 1 page
* Improve rocprofv3 perfetto track labels
* Preliminary kernel renaming support + misc rocprofv3 updates
- add rocprofv3 option --kernel-rename
- add rocprofv3 options for perfetto settings (buffer size, etc.)
- add CSV columns for kernel trace
- Thread_Id
- Dispatch_Id
- add CSV column for counter_collection
- Kernel_Id
[ROCm/rocprofiler-sdk commit: ebb021c59f]
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
62ab2957b0
Коммит
a728a4b4cd
@@ -70,5 +70,33 @@ get_string_entry(std::string_view name)
|
||||
->emplace(_hash_v, std::make_unique<std::string>(name))
|
||||
.first->second.get();
|
||||
}
|
||||
|
||||
const std::string*
|
||||
get_string_entry(size_t _hash_v)
|
||||
{
|
||||
if(!get_string_array()) return nullptr;
|
||||
|
||||
auto _lk = std::shared_lock<std::shared_mutex>{get_sync()};
|
||||
if(get_string_array()->count(_hash_v) > 0) return get_string_array()->at(_hash_v).get();
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
size_t
|
||||
add_string_entry(std::string_view name)
|
||||
{
|
||||
if(!get_string_array()) return 0;
|
||||
|
||||
auto _hash_v = std::hash<std::string_view>{}(name);
|
||||
{
|
||||
auto _lk = std::shared_lock<std::shared_mutex>{get_sync()};
|
||||
if(get_string_array()->count(_hash_v) > 0) return _hash_v;
|
||||
}
|
||||
|
||||
auto _lk = std::unique_lock<std::shared_mutex>{get_sync()};
|
||||
get_string_array()->emplace(_hash_v, std::make_unique<std::string>(name));
|
||||
|
||||
return _hash_v;
|
||||
}
|
||||
} // namespace common
|
||||
} // namespace rocprofiler
|
||||
|
||||
Ссылка в новой задаче
Block a user