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
Bu işleme şunda yer alıyor:
Jonathan R. Madsen
2022-11-16 09:48:15 -06:00
işlemeyi yapan: GitHub
ebeveyn 2135f82ab8
işleme 2f16e2ecb1
13 değiştirilmiş dosya ile 464 ekleme ve 220 silme
+4 -4
Dosyayı Görüntüle
@@ -46,7 +46,7 @@ omnitrace_push_region(const char* _name)
omnitrace_push_region_hidden(_name);
} catch(std::exception& _e)
{
OMNITRACE_VERBOSE_F(1, "Exception caught: %s\n", _e.what());
OMNITRACE_WARNING_F(1, "Exception caught: %s\n", _e.what());
return -1;
}
return 0;
@@ -60,7 +60,7 @@ omnitrace_pop_region(const char* _name)
omnitrace_pop_region_hidden(_name);
} catch(std::exception& _e)
{
OMNITRACE_VERBOSE_F(1, "Exception caught: %s\n", _e.what());
OMNITRACE_WARNING_F(1, "Exception caught: %s\n", _e.what());
return -1;
}
return 0;
@@ -77,7 +77,7 @@ omnitrace_push_category_region(omnitrace_category_t _category, const char* _name
_annotation_count);
} catch(std::exception& _e)
{
OMNITRACE_VERBOSE_F(1, "Exception caught: %s\n", _e.what());
OMNITRACE_WARNING_F(1, "Exception caught: %s\n", _e.what());
return -1;
}
return 0;
@@ -94,7 +94,7 @@ omnitrace_pop_category_region(omnitrace_category_t _category, const char* _name,
_annotation_count);
} catch(std::exception& _e)
{
OMNITRACE_VERBOSE_F(1, "Exception caught: %s\n", _e.what());
OMNITRACE_WARNING_F(1, "Exception caught: %s\n", _e.what());
return -1;
}
return 0;