Optional perfetto annotations (#206)

* Misc tweaks

- C API function print with warning colors
- split region/trace start/stop functions into regions.cpp file

* Config option for disabling perfetto annotations

* Missing checks in roctracer.cpp and sampling.cpp

* Verbose makefile in CI

* run-ci uses -VV

* Fix gcc-7 maybe-uninitialized warning

* Fix push/pop perfetto

- moving perfetto::EventContext was causing errors
Cette révision appartient à :
Jonathan R. Madsen
2022-11-16 09:48:15 -06:00
révisé par GitHub
Parent 2135f82ab8
révision 2f16e2ecb1
13 fichiers modifiés avec 464 ajouts et 220 suppressions
+2 -1
Voir le fichier
@@ -419,7 +419,8 @@ pthread_create_gotcha::operator()(pthread_t* thread, const pthread_attr_t* attr,
_promise->get_future().wait_for(std::chrono::milliseconds{ 500 });
}
if(_use_bundle) stop_bundle(*_bundle, threading::get_id(), audit::outgoing{}, _ret);
if(_use_bundle)
stop_bundle(*_bundle, _info->index_data->sequent_value, audit::outgoing{}, _ret);
// unblock the signals in the entire process
if(_enable_sampling && !_blocked.empty())