Skip to main content

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

Project description

nanoProfiler

License: GPL v3 Release

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

nanoProfiler was primarily designed evaluate the internal variations of execution times in codes with variable complexity. But it can also be used with fixed complexity code.

Instalation

nanoProfiler can be installed with pip:

pip install nanoprofiler

or:

python -m pip install nanoprofiler

Manual instalation

Clone the repository

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

And run setup 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", "prefix_for_files")

More details on how to use nanoProfiler can be found here.

Documentation

Documentation can be found here.

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.2.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distributions

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

nanoprofiler-0.2.1-py3.7.egg (12.5 kB view details)

Uploaded Egg

nanoprofiler-0.2.1-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file nanoprofiler-0.2.1.tar.gz.

File metadata

  • Download URL: nanoprofiler-0.2.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for nanoprofiler-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d6bfdc4246deb87953e0889822f838c799f6d912f1ad1fa5078a0f0d8df67b6b
MD5 64111d01146f7e18932a32aba3b135dd
BLAKE2b-256 64151e8df7d10da511e3ac8803ab9ac3d0711ea4555404011c35c6125669b700

See more details on using hashes here.

File details

Details for the file nanoprofiler-0.2.1-py3.7.egg.

File metadata

  • Download URL: nanoprofiler-0.2.1-py3.7.egg
  • Upload date:
  • Size: 12.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for nanoprofiler-0.2.1-py3.7.egg
Algorithm Hash digest
SHA256 65d3ba835a66194702f6db24d863f6ce2e712ad7134a637e3fbb0aecdc97455f
MD5 c79f36bb05197f99fe38a1bea51a9f8f
BLAKE2b-256 931a9c29de66f5fbb267145a5936339f9c950b062bb104db8a3bb7b62aa4c742

See more details on using hashes here.

File details

Details for the file nanoprofiler-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: nanoprofiler-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for nanoprofiler-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b95081a434a81a6a953eb358a84167109ee99a13dfcac5675d1d680dc79fa556
MD5 bfb72b20d68695e9fd4a9a8891aec6e7
BLAKE2b-256 abdb202fa6f275dc285b9bd98f2c3fec4f83766381125d25b3732ab7099b93b2

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