perun.api.decorator

Decorator module.

Attributes

log

Functions

monitor([region_name])

Decorate function to monitor its energy usage.

perun([configuration_file])

Decorate function to monitor its energy usage.

register_callback(func)

Register a function to run after perun has finished collection data.

Module Contents

perun.api.decorator.log
perun.api.decorator.monitor(region_name: str | None = None)

Decorate function to monitor its energy usage.

perun.api.decorator.perun(configuration_file: str = './.perun.ini', **conf_kwargs)

Decorate function to monitor its energy usage.

perun.api.decorator.register_callback(func: Callable[[perun.data_model.data.DataNode], None])

Register a function to run after perun has finished collection data.

Parameters

funcCallable[[DataNode], None]

Function to be called.