adding tracer flush/unload stage unloading

Change-Id: Id84774b2ce20b261a9a84d2ad802b76093a748d4
This commit is contained in:
Evgeny
2020-06-02 05:10:02 -05:00
parent 8d0801de75
commit 07479cf881
3 changed files with 10 additions and 1 deletions
+3
View File
@@ -974,12 +974,15 @@ extern "C" PUBLIC_API void OnUnload() {
extern "C" CONSTRUCTOR_API void constructor() {
ONLOAD_TRACE_BEG();
roctracer_load();
tool_load();
ONLOAD_TRACE_END();
}
extern "C" DESTRUCTOR_API void destructor() {
ONLOAD_TRACE_BEG();
roctracer_flush_buf();
tool_unload();
roctracer_unload();
ONLOAD_TRACE_END();
}