Skip to main content

Easy profiler for python functions

Project description

Pyprofiler

Installation

Install from pypi

Install from repo

In virtual environment, install the package from this directory with: pip install .

Usage

Setup

Create a python module that contains a class which inherits from pyprofiler.profiler.PyProfiler.

Create methods that start with profile_.

The functions you want to profile in each method should be sent to self.pyprofile (with additional arguments). self.pyprofile takes a lambda/function/callable and arguments, and performs profiling on it.

usage: pyprofiler [-h] {compare,profile}

Run profiler

Run profiler (and show change in percentage from previous run)

pyprofiler profile [-h] [-n NAME_OF_RUN] [-v] pyprofile_file

Compare runs

Compare a run to a different run.

pyprofiler compare [-h] profile_run_name_before profile_run_name_after

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

simple_pyprofiler-2024.0.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

simple_pyprofiler-2024.0.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file simple_pyprofiler-2024.0.1.tar.gz.

File metadata

  • Download URL: simple_pyprofiler-2024.0.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for simple_pyprofiler-2024.0.1.tar.gz
Algorithm Hash digest
SHA256 f9dbc464c619d55e1c32c7f1fa74e7fdb11e288246de8008e7435c887f0f7000
MD5 6d7b3d8a285b80eb9aee960da3c5ab98
BLAKE2b-256 2b92e70e708c7209ed4e95e416e99784e4716879fe06b6eb82ef2ed92ae8fe08

See more details on using hashes here.

File details

Details for the file simple_pyprofiler-2024.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_pyprofiler-2024.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24c3ef66bb0312f7058c0cd39a2f83e459ff286bf1aaee6c4cc504af1dce17f7
MD5 5076bd5ecbc0f4e461b1cb0439ca2dea
BLAKE2b-256 50a9847831f6bed74f8ffd01f9f8a3bd6e4a7845c3bbb2a34faeef736b57730c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page