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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1aee4fbde4986d4f4868d0bc284781ed666a8a7f020cc64c8856d079024b9d0
|
|
| MD5 |
5d57999dba2b40879af97fb5f701aaab
|
|
| BLAKE2b-256 |
a78e297b052b2be19f2e114c16c2b3b3045ae66822b2cfc8e97d75237ca8e542
|
File details
Details for the file chronos_profiler-1.0.1-py3-none-any.whl.
File metadata
- Download URL: chronos_profiler-1.0.1-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9098c7eb7c998ae6a59814375a721fd648647b7e332d31c5fde01f14b6a1e213
|
|
| MD5 |
85c7912e5f9daa712c5db7862928a91a
|
|
| BLAKE2b-256 |
2641406c1463b0e1182de06933a5970d8f94be68a2b5ab634d14cc366b41232d
|