mendevi.measures

All measurement helper.

Classes

Activity([sleep])

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

context

Get the information of the environment.

g5kpower(hostname, start, duration, *[, ...])

Do a request to get the grid5000 consumption.

psutil

Use psutil to record the CPU and RAM usage.

rapl

Try to read the energy with RAPL.