Skip to main content

Python package for timing and profiling code execution, with GPU support.

Project description

chronos-profiler

Python package for timing and profiling code execution, with GPU support.

Installation

pip install chronos-profiler

For cupy GPU support:

pip install chronos-profiler[cupy]

Other GPU extras: cupy11, cupy12, cupy13.

Usage

import chronos

# Decorate functions to time them
@chronos.timer_utils.timer()
def my_function():
    ...

# Enable timing globally
chronos.timer_utils.toggle_timer(True)

# The function will be timed when run
my_function()

# Access recorded times
print(chronos.timer_utils.ELAPSED_TIME_DICT)

# Save and plot results
chronos.io.save_timing_data("/path/to/file.h5")
chronos.plotting.plot_elapsed_time_dict()

# Clear saved results
chronos.timer_utils.clear_time_globals()

License

Apache 2.0 — Copyright © 2026 UChicago Argonne, LLC

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

chronos_profiler-1.0.1.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

chronos_profiler-1.0.1-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file chronos_profiler-1.0.1.tar.gz.

File metadata

  • Download URL: chronos_profiler-1.0.1.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for chronos_profiler-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b1aee4fbde4986d4f4868d0bc284781ed666a8a7f020cc64c8856d079024b9d0
MD5 5d57999dba2b40879af97fb5f701aaab
BLAKE2b-256 a78e297b052b2be19f2e114c16c2b3b3045ae66822b2cfc8e97d75237ca8e542

See more details on using hashes here.

File details

Details for the file chronos_profiler-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for chronos_profiler-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9098c7eb7c998ae6a59814375a721fd648647b7e332d31c5fde01f14b6a1e213
MD5 85c7912e5f9daa712c5db7862928a91a
BLAKE2b-256 2641406c1463b0e1182de06933a5970d8f94be68a2b5ab634d14cc366b41232d

See more details on using hashes here.

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