Skip to main content

No project description provided

Project description

Basic usage

Measure the energy consumption during a function execution

To measure the energy consumed during the execution of the function fun() run the following code

import pyRAPL

sensor = pyRAPL.PyRAPL()
sensor.record([pyRAPL.Device.PKG, pyRAPL.Device.DRAM])
fun()
sensor.stop()
energy_pkg = sensor.recorded_energy(pyRAPL.Device.PKG)
energy_dram = sensor.recorded_energy(pyRAPL.Device.DRAM)

TODO

  • add decorator
  • add time measure MIT License

Copyright (c) 2018, INRIA Copyright (c) 2018, University of Lille All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyRAPL-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

pyRAPL-0.1.0-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyRAPL-0.1.0.tar.gz.

File metadata

  • Download URL: pyRAPL-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for pyRAPL-0.1.0.tar.gz
Algorithm Hash digest
SHA256 548bf04da5f33d06d8c59b757a0ce8ebfe737ca8a176b50a33f8042987e4e92c
MD5 7888b177347acf645fe6ac7f4c9b3c15
BLAKE2b-256 04c10a091909cd371b7e0f1516c50e2cd82c909b101d3e941fd68f05daa17c05

See more details on using hashes here.

File details

Details for the file pyRAPL-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pyRAPL-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for pyRAPL-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a3d28bc79dee523ccf0ae81338e7f638a399b78027dbd7553695e6a19ebcbc60
MD5 eddfaf023be3ec9fba702c9f6492d0e8
BLAKE2b-256 a3bb3c9e58252f70b37f174b53b8583739b6bda79a31d87e879ad02b442a6e8a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page