From 8880305f17c364ff1e7c6a51714699fe64f759db Mon Sep 17 00:00:00 2001 From: Romaric Jodin <89833130+rjodinchr@users.noreply.github.com> Date: Sun, 21 Jan 2024 17:17:32 +0100 Subject: [PATCH] make sure to flush perfetto event with System backend (#652) --- src/tracing.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tracing.cpp b/src/tracing.cpp index c4aefa71..731fa8f9 100644 --- a/src/tracing.cpp +++ b/src/tracing.cpp @@ -62,6 +62,8 @@ void term_tracing() { output.open(config.perfetto_trace_dest, std::ios::out | std::ios::binary); output.write(&trace_data[0], trace_data.size()); output.close(); +#else + perfetto::TrackEvent::Flush(); #endif #endif // CLVK_PERFETTO_ENABLE }