Skip to main content

A small python profiler using cProfile, pstats , Pandas and matplotlib

Project description

Code: GPL v3 Documentation: CC BY-SA 4.0 Release: v0.1.0

A small python profiler using cProfile, pstats, Pandas and matplotlib.

Instalation

Clone the repository

https://gitlab.com/nanogennari/nanoprofiler.git

Install setuptools (if not installed)

sudo apt install python-setuptools

And run sertup script

cd nanoprofiler
python setup.py install

Usage

Usage example

from nanoprofiler import Profiler

pr = Profiler()

pr.start(name="exec1")
your_code()
pr.stop()

pr.start(name="exec2")
another_code()
pr.stop()

pr.plot_top_time(time="cumtime")
pr.plot_function(time="tottime")
pr.save_data("folder/to/save/results")

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

nanoprofiler-0.1.0.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

nanoprofiler-0.1.0-py3-none-any.whl (18.1 kB view hashes)

Uploaded Python 3

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