Put cached perfetto traces as default one (#2138)
* Put cached perfetto traces as default one * Improve cached data and perfetto traces in order to be more aligned with E2E tests * Addressing PR comments and findings * Force early instrumentation bundle instantiation * Sync-up insturumented containers with thread growth data * Revert ompvv number of host threads to default 8 * Fixed counter track namings for amd-smi * AIPROFSYST-34 [rocprof-sys] Update documentation describing newly introduced changes to default tracing mechanism
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
7da3275b42
Коммит
ba1380a75d
@@ -30,6 +30,7 @@
|
||||
#include "library/causal/delay.hpp"
|
||||
#include "library/runtime.hpp"
|
||||
#include "library/thread_data.hpp"
|
||||
#include "library/thread_data_growth.hpp"
|
||||
|
||||
#include <timemory/backends/threading.hpp>
|
||||
#include <timemory/components/timing/backends.hpp>
|
||||
@@ -111,6 +112,13 @@ init_index_data(int64_t _tid, bool _offset = false)
|
||||
thread_local int64_t offset_causal_count = 0;
|
||||
const auto unknown_thread = std::optional<thread_info>{};
|
||||
int64_t peak_num_threads = max_supported_threads;
|
||||
|
||||
// Register callback to allow thread_data containers to query peak_num_threads
|
||||
// when they are instantiated, ensuring late-instantiated containers are properly sized.
|
||||
const auto peak_num_threads_callback_registered = []() {
|
||||
set_peak_num_threads_callback([]() -> int64_t { return peak_num_threads; });
|
||||
return true;
|
||||
}();
|
||||
} // namespace
|
||||
|
||||
std::string
|
||||
|
||||
Ссылка в новой задаче
Block a user