Skip to main content

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

Metadata

Release files for miniprofiler 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for miniprofiler 0.0.2
File Size Uploaded
miniprofiler-0.0.2.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for miniprofiler 0.0.2
File Interpreter ABI Platform
miniprofiler-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / miniprofiler-0.0.2.tar.gz

Download URL miniprofiler-0.0.2.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9f0d82fa6d43464fdae35f601d15a51f7a7775ae892779aa1a492a8972437509
BLAKE2b-256 checksum
How to use checksums
5eb6921e46befca3388f8ee2b8111af6492dfd6b4944dbf2aa6a455d0f513b43
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / miniprofiler-0.0.2-py3-none-any.whl

Download URL miniprofiler-0.0.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5a33e30ffa4165543710a205a11bc15ef0e535f6fec8a230a9c3736b34a23fe
BLAKE2b-256 checksum
How to use checksums
2f25ce1b884dc3c5d2c2f811a46536ab022f8a2c6af20b0e69b944249dd0f88e
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page