double simtime_t
Simulation time data type.
Definition: ROOT-Sim.h:27
Core ROOT-Sim functionalities.
stats_global_type
The kind of timestamps collected during the simulation execution lifetime.
Definition: stats.h:16
@ STATS_GLOBAL_INIT_END
Collected when the global data structures of the simulation framework have been initialized.
Definition: stats.h:18
@ STATS_GLOBAL_EVENTS_START
Collected just before actual event processing activities start.
Definition: stats.h:20
@ STATS_GLOBAL_FINI_START
Collected when beginning to de-initialize global data structures.
Definition: stats.h:24
@ STATS_GLOBAL_EVENTS_END
Collected right after the last processed message.
Definition: stats.h:22
@ STATS_GLOBAL_HR_TOTAL
Collected at the last possible moment before having to dump statistics (high resolution timer)
Definition: stats.h:28
@ STATS_GLOBAL_COUNT
Used to count the members of this enum.
Definition: stats.h:30
@ STATS_GLOBAL_END
Collected at the last possible moment before having to dump statistics.
Definition: stats.h:26
void stats_on_gvt(simtime_t current_gvt)
Perform GVT related activities for the statistics subsystem.
Definition: stats.c:341
void stats_global_time_take(enum stats_global_type this_stat)
Take a lifetime event time value.
Definition: stats.c:90
stats_thread_type
The kind of samples collected during a simulation run.
Definition: stats.h:35
@ STATS_MSG_SILENT
The count of messages processed in coasting forward, i.e. silently executed messages.
Definition: stats.h:53
@ STATS_MSG_ANTI
The count of generated anti-messages.
Definition: stats.h:57
@ STATS_ROLLBACK
The count of rollbacks.
Definition: stats.h:41
@ STATS_COUNT
Used to count the members of this enum.
Definition: stats.h:61
@ STATS_MSG_SILENT_TIME
The time taken to carry out silent processing activities.
Definition: stats.h:55
@ STATS_CKPT_TIME
The time spent in checkpointing activities.
Definition: stats.h:49
@ STATS_MSG_PROCESSED_TIME
The time spent inside the model dispatcher function.
Definition: stats.h:39
@ STATS_MSG_PROCESSED
The count of processed messages.
Definition: stats.h:37
@ STATS_CKPT_SIZE
The size of LPs checkpoints.
Definition: stats.h:51
@ STATS_RECOVERY_TIME
The time spent for recovery from a rollback: checkpoint restore and anti-message sending activities.
Definition: stats.h:43
@ STATS_REAL_TIME_GVT
The real time elapsed since last GVT computation.
Definition: stats.h:59
@ STATS_CKPT
The count of taken checkpoints.
Definition: stats.h:47
@ STATS_MSG_ROLLBACK
The count of rollbacked message, i.e. the already processed messages whose effect has been invalidate...
Definition: stats.h:45
void stats_global_init(void)
Initializes the stats subsystem in the node.
Definition: stats.c:98
void stats_global_fini(void)
Finalizes the stats subsystem in the node.
Definition: stats.c:293
void stats_dump(void)
Dump some final minimal statistics on screen.
Definition: stats.c:371
void stats_take(enum stats_thread_type this_stat, uint_fast64_t c)
Sum a sample to a statistics value.
Definition: stats.c:328
uint64_t stats_retrieve(enum stats_thread_type this_stat)
Retrieve the value of a metric of this thread.
Definition: stats.c:388
void stats_init(void)
Initializes the stats subsystem in the current thread.
Definition: stats.c:123