Mini profiler tool for your projects
Project description
miniprofiler
Mini profiling tool for your projects.
Usage
from miniprofiler import Profiler
profiler = Profiler()
# Collect N samples, this can be an unlimited loop as well
# for example your game loop
for _ in range(N):
with profiler.profile("render"):
# Your rendering code goes here
stat = profiler["render"]
print(f"Rendering took {stat.avg} seconds on average, with a minimum time of {stat.min} seconds.")
Installation
Install via PyPI:
$ pip install miniprofiler
or just copy-paste miniprofiler into your project.
License
MIT © Kadir Aksoy
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
miniprofiler-0.0.2.tar.gz
(4.9 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 miniprofiler-0.0.2.tar.gz.
File metadata
- Download URL: miniprofiler-0.0.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f0d82fa6d43464fdae35f601d15a51f7a7775ae892779aa1a492a8972437509
|
|
| MD5 |
f086d3bc267f3eea46a7b7f9c3defc24
|
|
| BLAKE2b-256 |
5eb6921e46befca3388f8ee2b8111af6492dfd6b4944dbf2aa6a455d0f513b43
|
File details
Details for the file miniprofiler-0.0.2-py3-none-any.whl.
File metadata
- Download URL: miniprofiler-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5a33e30ffa4165543710a205a11bc15ef0e535f6fec8a230a9c3736b34a23fe
|
|
| MD5 |
047c2a25a60d19c1d0b1505bf497bf15
|
|
| BLAKE2b-256 |
2f25ce1b884dc3c5d2c2f811a46536ab022f8a2c6af20b0e69b944249dd0f88e
|