toil.lib.resources¶
Classes¶
Global resource monitoring widget. |
Functions¶
|
Walks through a directory and its subdirectories looking for files matching |
Module Contents¶
- class toil.lib.resources.ResourceMonitor[source]¶
Global resource monitoring widget.
Presents class methods to get the resource usage of this process and child processes, and other class methods to adjust the statistics so they can account for e.g. resources used inside containers, or other resource usage that should be billable to the current process.
- classmethod record_extra_memory(peak_ki)[source]¶
Become responsible for the given peak memory usage, in kibibytes.
The memory will be treated as if it was used by a child process at the time our real child processes were also using their peak memory.
- Parameters:
peak_ki (int)
- Return type:
None
- classmethod record_extra_cpu(seconds)[source]¶
Become responsible for the given CPU time.
The CPU time will be treated as if it had been used by a child process.
- Parameters:
seconds (float)
- Return type:
None