From: Augustin Degomme Date: Tue, 1 Feb 2022 15:23:24 +0000 (+0100) Subject: There is no timestamp in TI events, so they were never dumped during execution, only... X-Git-Tag: v3.31~526 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/731c1c3acd4facc435f497e45e44347d79aff6ad?hp=87a8272c0a2aa519a37273f1bcd719149eb5b44d There is no timestamp in TI events, so they were never dumped during execution, only at the end. This should save a lot of memory, at the expanse of more file accesses. --- diff --git a/src/instr/instr_paje_trace.cpp b/src/instr/instr_paje_trace.cpp index 8f7b4ffd84..60ebc5cf43 100644 --- a/src/instr/instr_paje_trace.cpp +++ b/src/instr/instr_paje_trace.cpp @@ -24,7 +24,7 @@ void dump_buffer(bool force) if (not TRACE_is_enabled()) return; XBT_DEBUG("%s: dump until %f. starts", __func__, last_timestamp_to_dump); - if (force){ + if (force || (trace_format == TraceFormat::Ti)){ for (auto const& event : buffer) { event->print(); delete event;