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
+6 -1
View File
@@ -1283,11 +1283,16 @@ PUBLIC_API void roctracer_unload() {
roctracer::act_journal = NULL;
}
roctracer::trace_buffer.Flush();
roctracer::close_output_file(roctracer::kernel_file_handle);
ONLOAD_TRACE_END();
}
PUBLIC_API void roctracer_flush_buf() {
ONLOAD_TRACE_BEG();
roctracer::trace_buffer.Flush();
ONLOAD_TRACE_END();
}
CONSTRUCTOR_API void constructor() {
ONLOAD_TRACE_BEG();
roctracer::util::Logger::Create();