diff --git a/src/extension/TraceController.cpp b/src/extension/TraceController.cpp index 7e135d86..b2a40608 100644 --- a/src/extension/TraceController.cpp +++ b/src/extension/TraceController.cpp @@ -275,6 +275,11 @@ namespace extension { } write_trace_packet(data); + // Write the trace events that happened before the trace started + auto current_stats = threading::ReactionTask::get_current_task()->statistics; + encode_event(ReactionEvent(ReactionEvent::CREATED, current_stats)); + encode_event(ReactionEvent(ReactionEvent::STARTED, current_stats)); + // Bind new handles event_handle = on, Pool>().then([this](const ReactionEvent& e) { // encode_event(e);