@@ -295,6 +295,15 @@ struct TraceLite {
295
295
return traces_.size ();
296
296
}
297
297
298
+ /* *
299
+ * @brief Get the LB Stats Write event
300
+ *
301
+ * @return the LB stats write event
302
+ */
303
+ UserEventIDType getWriteStatsEvent () const {
304
+ return write_stats_event_;
305
+ }
306
+
298
307
/* *
299
308
* @brief Get the last recorded trace event
300
309
*
@@ -430,20 +439,21 @@ struct TraceLite {
430
439
EventHoldStackType event_holds_;
431
440
TraceStackType open_events_;
432
441
TraceContainerType traces_;
433
- TraceEventIDType cur_event_ = 1 ;
434
- UserEventIDType flush_event_ = no_user_event_id;
435
- bool enabled_ = true ;
436
- TimeType start_time_ = TimeType{0.0 };
437
- std::string prog_name_ = " " ;
438
- std::string trace_name_ = " " ;
439
- std::string full_trace_name_ = " " ;
440
- std::string full_sts_name_ = " " ;
441
- std::string full_dir_name_ = " " ;
442
- bool wrote_sts_file_ = false ;
443
- size_t trace_write_count_ = 0 ;
444
- bool standalone_initalized_ = false ;
445
- bool trace_enabled_cur_phase_ = true ;
446
- bool idle_begun_ = false ;
442
+ TraceEventIDType cur_event_ = 1 ;
443
+ UserEventIDType write_stats_event_ = no_user_event_id;
444
+ UserEventIDType flush_event_ = no_user_event_id;
445
+ bool enabled_ = true ;
446
+ TimeType start_time_ = TimeType{0.0 };
447
+ std::string prog_name_ = " " ;
448
+ std::string trace_name_ = " " ;
449
+ std::string full_trace_name_ = " " ;
450
+ std::string full_sts_name_ = " " ;
451
+ std::string full_dir_name_ = " " ;
452
+ bool wrote_sts_file_ = false ;
453
+ size_t trace_write_count_ = 0 ;
454
+ bool standalone_initalized_ = false ;
455
+ bool trace_enabled_cur_phase_ = true ;
456
+ bool idle_begun_ = false ;
447
457
std::unique_ptr<vt_gzFile> log_file_;
448
458
std::unordered_map<TraceEventIDType, std::stack<Log*>> incomplete_notes_ = {};
449
459
};
0 commit comments