Perfetto updates (#211)

* Retry support in build-docker-release.sh

* critical-trace perfetto update

- use ::perfetto::Track instead of threads to create rows
- refactor call_chain::generate_perfetto

* Fix backtrace_metrics for perfetto

- get_papi_labels is now properly populated

* Refactor sampling::post_process_perfetto

- include HW counter delta in sample debug annotations
- reduce the amount debug annotation data stored in the call-stack
  - if the data is common to the entire stack, it is only annotated in the first and the last call-stack entry

* exit_gotcha::exit_info

* Improve OMPT shutdown

- cause spurious test failures

* Update source/lib/omnitrace/library/ompt.cpp

[ROCm/rocprofiler-systems commit: 2ebfe3fc30]
This commit is contained in:
Jonathan R. Madsen
2022-11-17 08:43:45 -06:00
committed by GitHub
parent a8cec1ea17
commit a52254abf3
11 changed files with 357 additions and 266 deletions
@@ -137,6 +137,13 @@ backtrace_metrics::description()
return "Records sampling data";
}
std::vector<std::string>
backtrace_metrics::get_hw_counter_labels(int64_t _tid)
{
auto& _v = get_papi_labels(_tid);
return (_v) ? *_v : std::vector<std::string>{};
}
void
backtrace_metrics::start()
{}
@@ -192,10 +199,8 @@ backtrace_metrics::configure(bool _setup, int64_t _tid)
OMNITRACE_DEBUG("HW COUNTER: starting...\n");
if(get_papi_vector(_tid))
{
using common_type_t = typename hw_counters::common_type;
get_papi_vector(_tid)->start();
*get_papi_labels(_tid) =
comp::papi_common<common_type_t>::get_config()->labels;
*get_papi_labels(_tid) = get_papi_vector(_tid)->get_config()->labels;
}
}
}