semvec/pypi-packages huggingface dataset:
simple-pyprofiler 2024.0.1
Easy profiler for python functions
Requires Python: >=3.8

# 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`