Skip to content

Commit

Permalink
Merge pull request #1285 from DARMA-tasking/1284-improve-debug-print-…
Browse files Browse the repository at this point in the history
…in-trace

1284: Improve debug print in trace
  • Loading branch information
lifflander authored Feb 24, 2021
2 parents b5edc11 + 361bca9 commit 9cfc8b2
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/vt/trace/trace.cc
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ TraceProcessingTag Trace::beginProcessing(

vt_debug_print(
trace, node,
"event_start: ep={}, event={}, time={}, from={}\n",
ep, event, time, from_node
"event_start: ep={}, event={}, time={}, from={}, entry chare={}\n",
ep, event, time, from_node, TraceRegistry::getEvent(ep).theEventSeq()
);

auto const type = TraceConstantsType::BeginProcessing;
Expand Down Expand Up @@ -387,6 +387,13 @@ void Trace::endProcessing(
endIdle(time);
}

vt_debug_print(
trace, node,
"event_stop: ep={}, event={}, time={}, from_node={}, entry chare={}\n",
ep, event, time, open_events_.back().node,
TraceRegistry::getEvent(ep).theEventSeq()
);

vtAssert(
not open_events_.empty()
// This is current contract expectations; however it precludes async closing.
Expand All @@ -399,12 +406,6 @@ void Trace::endProcessing(
addMemoryEvent(theMemUsage()->getFirstUsage());
}

vt_debug_print(
trace, node,
"event_stop: ep={}, event={}, time={}, from_node={}\n",
ep, event, time, open_events_.back().node
);

// Final event is same as original with a few .. tweaks.
// Always done PRIOR TO restarts.
traces_.push(
Expand Down

0 comments on commit 9cfc8b2

Please sign in to comment.