Pthread category region (#102)

* Perfetto args support for pthread functions

* Add pthread category

[ROCm/rocprofiler-systems commit: 0729e1737b]
This commit is contained in:
Jonathan R. Madsen authored and GitHub committed 2022-07-22 16:45:35 -05:00
1 szülő eef2e22c5d
commit 21b45e35f3
6 files changed
+210 -53

No files matched your search

@@ -26,6 +26,7 @@
#include "library/config.hpp"
#include "library/cpu_freq.hpp"
#include "library/debug.hpp"
#include "library/runtime.hpp"
#include <memory>
#include <vector>
@@ -73,7 +74,8 @@ get_sampler_is_sampling()
void
sampler::poll(std::atomic<State>* _state, nsec_t _interval, promise_t* _ready)
{
set_thread_state(ThreadState::Internal);
OMNITRACE_SCOPED_THREAD_STATE(ThreadState::Internal);
threading::set_thread_name("omni.sampler");
// notify thread started