lenskit.logging.resource#
Measure resource consumption.
Functions
Get the current memory use for this process |
|
Get the maximum memory use for this process |
|
|
Classes
|
Single measurement of resources. |
- class lenskit.logging.resource.ResourceMeasurement(wall_time, perf_time, user_time, system_time, max_rss=None, max_gpu=None)#
Bases:
object
Single measurement of resources. Two measurements can be subtracted to compute the time resources consumed in an interval (memory resources are left unchanged).
- Stability:
- Internal (see Stability Levels).
- Parameters:
- classmethod current()#
Get the current resource measurements.
- lenskit.logging.resource.max_memory()#
Get the maximum memory use for this process
- lenskit.logging.resource.cur_memory()#
Get the current memory use for this process