jade.utils.timing_utils.TimerStatsCollector¶
- class jade.utils.timing_utils.TimerStatsCollector[source]¶
Bases:
object
Collects statistics for timed code segments.
Methods
clear
()Clear all stats.
get_stat
(name)Return a TimerStats.
log_stats
([clear])Log statistics for all tracked stats.
register_stat
(name)Register tracking of a new stat.
- log_stats(clear=False)[source]¶
Log statistics for all tracked stats.
- Parameters:
clear (bool) – If True, clear all stats.