Skip to content

Commit

Permalink
Merge branch 'main' into houliston/common-sfinae
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston authored Oct 26, 2024
2 parents 8c55e7b + 4a83418 commit 30db89a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/extension/TraceController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,11 @@ namespace extension {
encode_event(ReactionEvent(ReactionEvent::CREATED, current_stats));
encode_event(ReactionEvent(ReactionEvent::STARTED, current_stats));

// 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<Trigger<ReactionEvent>, Pool<TracePool>>().then([this](const ReactionEvent& e) { //
encode_event(e);
Expand Down

0 comments on commit 30db89a

Please sign in to comment.