Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
There is no timestamp in TI events, so they were never dumped during execution, only...
authorAugustin Degomme <adegomme@users.noreply.github.com>
Tue, 1 Feb 2022 15:23:24 +0000 (16:23 +0100)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Tue, 1 Feb 2022 15:23:42 +0000 (16:23 +0100)
This should save a lot of memory, at the expanse of more file accesses.

src/instr/instr_paje_trace.cpp

index 8f7b4ff..60ebc5c 100644 (file)
@@ -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;