hpcflow.sdk.log.TimeIt#

class hpcflow.sdk.log.TimeIt#

Bases: object

Method execution time instrumentation.

Methods

decorator

Decorator for a method that is to have its execution time monitored.

summarise

Produce a machine-readable summary of method execution time statistics.

summarise_string

Produce a human-readable summary of method execution time statistics.

Attributes

active

Whether the instrumentation is active.

file_path

Where to log to.

timers

The details be tracked.

trace

Traces of the stack.

trace_idx

Trace indices.

trace_idx_prev

Preceding trace indices.

trace_prev

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.