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.

clear()[source]

Clear all stats.

get_stat(name)[source]

Return a TimerStats.

Parameters:

name (str)

Return type:

TimerStats

log_stats(clear=False)[source]

Log statistics for all tracked stats.

Parameters:

clear (bool) – If True, clear all stats.

register_stat(name)[source]

Register tracking of a new stat.

Parameters:

name (str)

Return type:

TimerStats