Generate --event-trace output explicitly rather than in EventTraceMgr destructor

This commit is contained in:
Vern Paxson 2025-05-15 13:00:17 -07:00
parent 6b6c3dbbb7
commit f5c1a32d8d
3 changed files with 7 additions and 2 deletions

View file

@ -958,7 +958,7 @@ EventTraceMgr::EventTraceMgr(const std::string& trace_file) {
reporter->FatalError("can't open event trace file %s", trace_file.c_str());
}
EventTraceMgr::~EventTraceMgr() {
void EventTraceMgr::Generate() {
if ( events.empty() )
return;