31#if (CH_DBG_STATISTICS == TRUE) || defined(__DOXYGEN__)
41#if CH_CFG_USE_TM == FALSE
42#error "CH_DBG_STATISTICS requires CH_CFG_USE_TM"
114#define __stats_increase_irq()
115#define __stats_ctxswc(old, new)
116#define __stats_start_measure_crit_thd()
117#define __stats_stop_measure_crit_thd()
118#define __stats_start_measure_crit_isr()
119#define __stats_stop_measure_crit_isr()
struct ch_thread thread_t
Type of a thread structure.
void __stats_stop_measure_crit_isr(void)
Stops the measurement of an ISR critical zone.
void __stats_ctxswc(thread_t *ntp, thread_t *otp)
Updates context switch related statistics.
void __stats_start_measure_crit_isr(void)
Starts the measurement of an ISR critical zone.
static void __stats_object_init(kernel_stats_t *ksp)
Statistics initialization.
void __stats_increase_irq(void)
Increases the IRQ counter.
void __stats_stop_measure_crit_thd(void)
Stops the measurement of a thread critical zone.
void __stats_start_measure_crit_thd(void)
Starts the measurement of a thread critical zone.
void chTMObjectInit(time_measurement_t *tmp)
Initializes a TimeMeasurement object.
NOINLINE void chTMStartMeasurementX(time_measurement_t *tmp)
Starts a measurement.
Type of a kernel statistics structure.
time_measurement_t m_crit_thd
Measurement of threads critical zones duration.
ucnt_t n_irq
Number of IRQs.
time_measurement_t m_crit_isr
Measurement of ISRs critical zones duration.
ucnt_t n_ctxswc
Number of context switches.
Type of a Time Measurement object.