sciris.sc_profiling¶
Profiling and CPU/memory management functions.
- Highlights:
cpuload()
: alias topsutil.cpu_percent()
loadbalancer()
: very basic load balancerprofile()
: a line profilerresourcemonitor()
: a monitor to kill processes that exceed memory or other limits
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. |
|
Alias to |
|
Takes a snapshot of current CPU usage via |
|
Delay execution while CPU load is too high -- a very simple load balancer. |
|
Takes a snapshot of current fraction of memory usage via |
|
Profile the line-by-line memory required by a function. |
|
Profile the line-by-line time required by a function. |
Classes
Asynchronously monitor resource (e.g. |
Exceptions
Custom exception for use with the |