Go to the documentation of this file.
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"
94 #define _stats_increase_irq()
95 #define _stats_ctxswc(old, new)
96 #define _stats_start_measure_crit_thd()
97 #define _stats_stop_measure_crit_thd()
98 #define _stats_start_measure_crit_isr()
99 #define _stats_stop_measure_crit_isr()
time_measurement_t m_crit_thd
Measurement of threads critical zones duration.
time_measurement_t m_crit_isr
Measurement of ISRs critical zones duration.
void _stats_stop_measure_crit_isr(void)
Stops the measurement of an ISR critical zone.
ucnt_t n_irq
Number of IRQs.
void _stats_increase_irq(void)
Increases the IRQ counter.
void _stats_start_measure_crit_thd(void)
Starts the measurement of a thread critical zone.
Structure representing a thread.
Type of a Time Measurement object.
void _stats_start_measure_crit_isr(void)
Starts the measurement of an ISR critical zone.
Type of a kernel statistics structure.
void _stats_stop_measure_crit_thd(void)
Stops the measurement of a thread critical zone.
void _stats_ctxswc(thread_t *ntp, thread_t *otp)
Updates context switch related statistics.
ucnt_t n_ctxswc
Number of context switches.
void _stats_init(void)
Initializes the statistics module.