proteus.Profiling module
Tools for high level profiling and event logging
- class proteus.Profiling.Dispatcher(comm=None, on=False)[source]
Bases:
object
Profiles function calls. Must be enabled like so:
dispatch = Dispatcher(comm, True)
A non-profiling dispatcher can be created like:
dispatch = Dispatcher()
Then, you can execute function calls using the following syntax:
ret = dispatch(func, args, kwargs)