Skip to main content

Ratatouille

DOI

Installation

The best way to install ratatouille is from pypi:

pip install ratatouille

Alternatively, you can install from master as follows:

pip install git+https://github.com/Ezibenroc/ratatouille.git

Example of usage

Collect data in file /tmp/data.csv with a 3 seconds interval (press Ctr-C to stop).

ratatouille collect -t 3 all /tmp/data.csv

Collect only the temperature and frequency:

ratatouille collect -t 3 cpu_freq temperature /tmp/data.csv

Plot the data stored in file /tmp/data.csv.

ratatouille plot /tmp/data.csv

For this last command, you need to install extra dependencies:

pip install pandas plotnine

Collected data

When collecting data you can either collect all data (with the all target argument) or a subset of the data:

  • cpu_freq collects the frequency (in Hertz) of each logical CPU core listed in /sys/devices/system/cpu/.
  • cpu_load collects the percentage load of the CPUs.
  • cpu_power computes the average power consumption (in Watts) of each package listed in /sys/devices/virtual/powercap/intel-rapl/ between two intervals. Additional values for the core, uncore and dram are also collected if available.
  • cpu_stats collects the total number of context switches, interrupts and soft_interrupts since boot.
  • fan_speed collects the rotation speed of fans.
  • memory_usage collects the current memory available (in bytes) and its percentage over the total memory.
  • network collects the total number of bytes sent and received on each network interface.
  • temperature collects the temperature (in Celsius or Farenheit degrees, depending on your configuration) of each physical CPU core and other thermal sensors.

Notice that cpu_load, cpu_stats, fan_speed, memory_usage, network and temperature rely on psutil to collect data.

Release files for ratatouille 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ratatouille 0.1.2
File Interpreter ABI Platform
ratatouille-0.1.2-py3-none-any.whl Python 3 none any Details

Release files / ratatouille-0.1.2-py3-none-any.whl

Download URL ratatouille-0.1.2-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bca81c08a7ec257bbc9bc379b72bb3fb1cde09ff5e6b448e89691122c096a61c
BLAKE2b-256 checksum
How to use checksums
54b3f66e53563b47989d5769320de37aad057ff86a7ac892f339d78946f27e38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page