profiling

PlasmaCalcs.tools.timing.profiling(sortkey=None)

returns default profiler, PROFILE. Sets its sortkey if provided.

see help(PROFILE.SortKey) for sortkey options.
Example Usage:
with profiling():
>> code to profile goes here <<
print_profile()