proteus.Profiling module

Tools for high level profiling and event logging

Inheritance diagram of proteus.Profiling

proteus.Profiling.memProfOn()[source]
proteus.Profiling.memHardLimitOn(value)[source]
proteus.Profiling.memProfOn_callback(option, opt, value, parser)[source]
proteus.Profiling.memHardLimitOn_callback(option, opt, value, parser)[source]
proteus.Profiling.verboseOn_callback(option, opt, value, parser)[source]
proteus.Profiling.openLog(filename, level, logLocation=None)[source]
proteus.Profiling.closeLog()[source]
proteus.Profiling.logEvent(stringIn, level=1, data=None)[source]
proteus.Profiling.memory(message=None, className='', memSaved=None)[source]
proteus.Profiling.memorySummary()[source]
class proteus.Profiling.Dispatcher(comm=None, on=False)[source]

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)

profile_function(func, args, kwargs, profile_name)[source]

Profile a Proteus function using the call: func(*args, **kwargs)

Returns the output of the function call.

proteus.Profiling.ProfilingDtor()[source]