Skip to main content

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


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)

Uploaded Source

Built Distribution

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

miniprofiler-0.0.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

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

Hashes for miniprofiler-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9f0d82fa6d43464fdae35f601d15a51f7a7775ae892779aa1a492a8972437509
MD5 f086d3bc267f3eea46a7b7f9c3defc24
BLAKE2b-256 5eb6921e46befca3388f8ee2b8111af6492dfd6b4944dbf2aa6a455d0f513b43

See more details on using hashes here.

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

Hashes for miniprofiler-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c5a33e30ffa4165543710a205a11bc15ef0e535f6fec8a230a9c3736b34a23fe
MD5 047c2a25a60d19c1d0b1505bf497bf15
BLAKE2b-256 2f25ce1b884dc3c5d2c2f811a46536ab022f8a2c6af20b0e69b944249dd0f88e

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