1 #ifndef __CS_TIMER_STATS_H__ 2 #define __CS_TIMER_STATS_H__ int cs_timer_stats_create(const char *parent_name, const char *name, const char *label)
Create a timer statistics structure.
Definition: cs_timer_stats.c:456
void cs_timer_stats_add_diff(int id, const cs_timer_t *t0, const cs_timer_t *t1)
Add a timing range to an inactive timer.
Definition: cs_timer_stats.c:774
int cs_timer_stats_is_active(int id)
indicate if a timer for a given statistic is currently active.
Definition: cs_timer_stats.c:598
Definition: cs_timer.h:46
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
void cs_timer_stats_start(int id)
Start a timer for a given statistic.
Definition: cs_timer_stats.c:624
void cs_timer_stats_stop(int id)
Stop a timer for a given statistic.
Definition: cs_timer_stats.c:669
void cs_timer_stats_set_start_time(int time_id)
Set a start time for time stats.
Definition: cs_timer_stats.c:362
void cs_timer_stats_increment_time_step(void)
Increment time step for timer statistics.
Definition: cs_timer_stats.c:406
real(c_double), pointer, save t0
reference temperature.
Definition: cstphy.f90:215
cs_time_plot_format_t
Definition: cs_time_plot.h:56
void cs_timer_stats_finalize(void)
Finalize timer statistics handling.
Definition: cs_timer_stats.c:325
void cs_timer_stats_set_plot(int id, int plot)
Enable or disable plotting for a timer statistic.
Definition: cs_timer_stats.c:578
void cs_timer_stats_initialize(void)
Initialize timer statistics handling.
Definition: cs_timer_stats.c:297
#define END_C_DECLS
Definition: cs_defs.h:511
int cs_timer_stats_switch(int id)
Start a timer for a given statistic, stopping previous timers of the same type which are not a parent...
Definition: cs_timer_stats.c:707
char * label
Definition: keywords.h:71
void cs_timer_stats_define_defaults(void)
Define default timer statistics.
Definition: cs_timer_stats.c:797
void cs_timer_stats_set_plot_options(cs_time_plot_format_t format, int frequency, int n_buffer_steps, double flush_wtime)
Set global timer statistics plot options.
Definition: cs_timer_stats.c:387
int cs_timer_stats_id_by_name(const char *name)
Return the id of a defined statistic based on its name.
Definition: cs_timer_stats.c:557