propro Package¶
magic Module¶
plotting Module¶
propro Module¶
-
class
propro.propro.profile(sample_rate=None, timeout=None, fmt=u'txt', callname=None)[source]¶ Bases:
objectDecorator to profile a function or method. The profile result is automatically written to disk.
Parameters: - sample_rate – (optional) Rate at which the process is being queried
- timeout – (optional) Maximal time the process is being profiled
- fmt – (optional) The desired output format. Can also be a tuple of formats. Supported: txt and any matplotlib fmt
- callname – (optional) Name used for plot title and output file name
-
propro.propro.profile_pid(pid, sample_rate=None, timeout=None)[source]¶ Profile a specific process id
Parameters: - pid – The process id to profile
- sample_rate – (optional) Rate at which the process is being queried
- timeout – (optional) Maximal time the process is being profiled
Returns ProfileResult: A ProfileResult namedtuple with the profiling result
-
propro.propro.profile_cmd(cmd, sample_rate=None, timeout=None)[source]¶ Profile a specific command
Parameters: - cmd – The command to profile
- sample_rate – (optional) Rate at which the process is being queried
- timeout – (optional) Maximal time the process is being profiled
Returns ProfileResult: A ProfileResult namedtuple with the profiling result