The ROme OpTimistic Simulator  3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
stats.h File Reference

Statistics module. More...

#include <core/core.h>
+ Include dependency graph for stats.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  stats_global_time {
  STATS_GLOBAL_INIT_END, STATS_GLOBAL_EVENTS_START, STATS_GLOBAL_EVENTS_END, STATS_GLOBAL_FINI_START,
  STATS_GLOBAL_COUNT
}
 
enum  stats_time {
  STATS_MSG_PROCESSED, STATS_GVT, STATS_ROLLBACK, STATS_MSG_SILENT,
  STATS_COUNT
}
 

Functions

void stats_global_time_start (void)
 Initializes the internal timer used to take accurate measurements.
 
void stats_global_time_take (enum stats_global_time this_stat)
 Initializes the internal timer used to take accurate measurements.
 
void stats_global_init (void)
 Initializes the stats subsystem in the node.
 
void stats_global_fini (void)
 Finalizes the stats subsystem in the node. More...
 
void stats_init (void)
 Initializes the stats subsystem in the current thread.
 
void stats_time_start (enum stats_time this_stat)
 
void stats_time_take (enum stats_time this_stat)
 
void stats_on_gvt (simtime_t current_gvt)
 
void stats_dump (void)
 

Detailed Description

Statistics module.

All the facilities to collect, gather, and dump statistics are implemented in this module.

Definition in file stats.h.

Function Documentation

◆ stats_global_fini()

void stats_global_fini ( void  )

Finalizes the stats subsystem in the node.

When finalizing this subsystem the master node formats and dumps his statistics from his temporary files onto the final csv. Then, in a distributed setting, he receives the slaves temporary files, formatting and dumping their statistics as well.

Definition at line 273 of file stats.c.

+ Here is the call graph for this function: