hpcflow.sdk.log.TimeIt#
- class hpcflow.sdk.log.TimeIt#
Bases:
object
Method execution time instrumentation.
Methods
Decorator for a method that is to have its execution time monitored.
Produce a machine-readable summary of method execution time statistics.
Produce a human-readable summary of method execution time statistics.
Attributes
Whether the instrumentation is active.
Where to log to.
The details be tracked.
Traces of the stack.
Trace indices.
Preceding trace indices.
Preceding traces.
- active = False#
Whether the instrumentation is active.
- classmethod decorator(func)#
Decorator for a method that is to have its execution time monitored.
- file_path = None#
Where to log to.
- classmethod summarise()#
Produce a machine-readable summary of method execution time statistics.
- classmethod summarise_string()#
Produce a human-readable summary of method execution time statistics.
- timers = {}#
The details be tracked.
- trace = []#
Traces of the stack.
- trace_idx = []#
Trace indices.
- trace_idx_prev = []#
Preceding trace indices.
- trace_prev = []#
Preceding traces.