sc_profiling#
Profiling and CPU/memory management functions.
- Highlights:
sc.profile(): a line profilersc.cprofile(): a function profilersc.benchmark(): quickly check your computer’s performancesc.resourcemonitor(): a monitor to kill processes that exceed memory or other limits
Classes
Profile the line-by-line time required by a function. |
|
Function profiler, built off Python's built-in cProfile |
|
Trace all function calls. |
|
Asynchronously monitor resource (e.g. memory) usage and terminate the process if the specified threshold is exceeded. |
Functions
Checks how much memory the variable or variables in question use by dumping them to file. |
|
Measure actual memory usage, typically at different points throughout execution. |
|
Benchmark Python performance |
|
Profile the line-by-line memory required by a function. |
|
Enumerate all functions in the supplied arguments; used in sc.profile(). |
Exceptions
Custom exception for use with the |