A small python profiler using cProfile, pstats , Pandas and matplotlib
Project description
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)
Built Distribution
Close
Hashes for nanoprofiler-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77f85d691eee597169bd2f328a037a6657ee23dc60d2825a1747d7ea59abed12 |
|
MD5 | 6a8efe174bb3bae29fb8598a7299b215 |
|
BLAKE2b-256 | d31348d2443030433dde484f2da35e1aeebfa701326bbcd6363034190dcb6a6f |