mendevi.measures
All measurement helper.
Classes
|
Measure the computer activity of a section. |
Details
- class mendevi.measures.Activity(sleep: Real = 0.05)[source]
Measure the computer activity of a section.
Examples
>>> import pprint, time >>> from mendevi.measures import Activity >>> with Activity() as activity: ... time.sleep(1) ... >>> pprint.pprint(activity) >>>
Init the perf context.
Parameters
- sleepfloat, default=50e-3
The time interval between 2 measures (in s).
Modules
Get the information of the environment. |
|
|
Do a request to get the grid5000 consumption. |
Use psutil to record the CPU and RAM usage. |
|
Try to read the energy with RAPL. |