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
[ROCm/rocprofiler-systems commit: 2f16e2ecb1]
This commit is contained in:
committed by
GitHub
parent
a325f26c61
commit
b7e504e938
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user