Skip to main content

Jupyter magic for measuring I/O operations per second

Project description

iops-profiler

A Jupyter IPython magic extension for measuring I/O operations per second (IOPS) in your code.

Installation

You can install iops-profiler directly from PyPI (once published):

pip install iops-profiler

Or install from source:

git clone https://github.com/lincc-frameworks/iops-profiler.git
cd iops-profiler
pip install -e .

Usage

Load the extension in your Jupyter notebook:

%load_ext iops_profiler

Then use the %%iops magic to profile I/O operations in a cell:

%%iops
# Your code here
with open('test.txt', 'w') as f:
    f.write('Hello World' * 1000)

The extension will display a table showing:

  • Execution time
  • Read/write operation counts
  • Bytes read/written
  • IOPS (operations per second)
  • Throughput (bytes per second)

Platform Support

  • Linux/Windows: Uses psutil for per-process I/O tracking
  • macOS: Uses fs_usage with privilege elevation (requires password prompt)

Requirements

  • Python 3.8+
  • IPython/Jupyter
  • psutil

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

iops_profiler-0.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iops_profiler-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iops_profiler-0.1.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for iops_profiler-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dc1b7da8a9eeab0c2c03f0cb3f676b769963eab144f5f91b69353f34940af18b
MD5 e0dea5561958c969d2f117403b74eb7b
BLAKE2b-256 1e7f3b2607f97f00a5af40ea1f88a4e058b45b315859ad14f0cf03f7ed47c770

See more details on using hashes here.

Provenance

The following attestation bundles were made for iops_profiler-0.1.0.tar.gz:

Publisher: publish-to-pypi.yml on lincc-frameworks/iops-profiler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file iops_profiler-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iops_profiler-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for iops_profiler-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ddf636bbad108f4f9d90d37d2447e558f0361e3c588eba3342372dcfe9151dd6
MD5 e60c7a1088397f3f4096a674bfe8bb2e
BLAKE2b-256 8723cd443d87b1e87787e068a152f6a3f6170f486f0c1ba850fba7576dc258e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for iops_profiler-0.1.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on lincc-frameworks/iops-profiler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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