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"
76 void __stats_init(
void);
110 #define __stats_increase_irq()
111 #define __stats_ctxswc(old, new)
112 #define __stats_start_measure_crit_thd()
113 #define __stats_stop_measure_crit_thd()
114 #define __stats_start_measure_crit_isr()
115 #define __stats_stop_measure_crit_isr()
time_measurement_t m_crit_thd
Measurement of threads critical zones duration.
void __stats_ctxswc(thread_t *ntp, thread_t *otp)
Updates context switch related statistics.
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.
Structure representing a thread.
Type of a Time Measurement object.
void __stats_stop_measure_crit_thd(void)
Stops the measurement of a thread critical zone.
void chTMObjectInit(time_measurement_t *tmp)
Initializes a TimeMeasurement object.
Type of a kernel statistics structure.
static void __stats_object_init(kernel_stats_t *ksp)
Statistics initialization.
void __stats_start_measure_crit_thd(void)
Starts the measurement of a thread critical zone.
ucnt_t n_ctxswc
Number of context switches.
void __stats_start_measure_crit_isr(void)
Starts the measurement of an ISR critical zone.
void __stats_increase_irq(void)
Increases the IRQ counter.