Skip to content

Commit 966c8df

Browse files
committed
#2388: lb_stats: register event for writing lb stats
1 parent 72a07e9 commit 966c8df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vt/vrt/collection/balance/lb_invoke/lb_manager.cc

+3-2
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,8 @@ void LBManager::commitPhaseStatistics(PhaseType phase) {
667667
}
668668

669669
#if vt_check_enabled(trace_enabled)
670-
theTrace()->addUserEventBracketedBegin(1);
670+
auto write_lb_stats_event = theTrace()->registerUserEventColl("write_lb_stats");
671+
theTrace()->addUserEventBracketedBegin(write_lb_stats_event);
671672
#endif
672673

673674
vt_debug_print(
@@ -688,7 +689,7 @@ void LBManager::commitPhaseStatistics(PhaseType phase) {
688689
writer->commitStaged();
689690

690691
#if vt_check_enabled(trace_enabled)
691-
theTrace()->addUserEventBracketedEnd(1);
692+
theTrace()->addUserEventBracketedEnd(write_lb_stats_event);
692693
#endif
693694
}
694695

0 commit comments

Comments
 (0)