adding tracer flush/unload stage unloading

Change-Id: Id84774b2ce20b261a9a84d2ad802b76093a748d4
Este commit está contenido en:
Evgeny
2020-06-02 05:10:02 -05:00
padre 8d0801de75
commit 07479cf881
Se han modificado 3 ficheros con 10 adiciones y 1 borrados
+6 -1
Ver fichero
@@ -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();