A small python profiler using cProfile, pstats, Pandas and matplotlib.
Project description
nanoProfiler
A small python profiler using cProfile, pstats, Pandas and matplotlib.
Instalation
nanoProfiler can be installed with pip:
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")
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.1.1.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for nanoprofiler-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91373ec3e1037b3a6b3e156da09ddf226e2c17ee545f0ab06f270b0d39a4fd31 |
|
MD5 | c8529264dee071887330de3df7c5bf2d |
|
BLAKE2b-256 | 554fc6df905fb6ca113fdd7d918f7f4530c278cfd5988dd00a72dd14808fbc64 |