Skip to content

Commit

Permalink
make sure to flush perfetto event with System backend (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjodinchr authored Jan 21, 2024
1 parent 6da0166 commit 8880305
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tracing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 8880305

Please sign in to comment.