Profiler¶
The profiler collects and logs profiling times.
- halmd.utility.profiler.profile()¶
Log and reset runtime accumulators.
- halmd.utility.profiler.on_profile(acc, desc)¶
Connect accumulator for profiling.
- Parameters:
acc – runtime accumulator
desc (string) – description of runtime accumulator
- Returns:
connection
- halmd.utility.profiler.on_prepend_profile(slot)¶
Connect slot to signal.
- Parameters:
slot – nullary function
- Returns:
connection
- halmd.utility.profiler.on_append_profile(slot)¶
Connect slot to signal.
- Parameters:
slot – nullary function
- Returns:
connection