A small python profiler using cProfile, pstats, Pandas and matplotlib.
Project description
nanoProfiler
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6bfdc4246deb87953e0889822f838c799f6d912f1ad1fa5078a0f0d8df67b6b
|
|
| MD5 |
64111d01146f7e18932a32aba3b135dd
|
|
| BLAKE2b-256 |
64151e8df7d10da511e3ac8803ab9ac3d0711ea4555404011c35c6125669b700
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65d3ba835a66194702f6db24d863f6ce2e712ad7134a637e3fbb0aecdc97455f
|
|
| MD5 |
c79f36bb05197f99fe38a1bea51a9f8f
|
|
| BLAKE2b-256 |
931a9c29de66f5fbb267145a5936339f9c950b062bb104db8a3bb7b62aa4c742
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b95081a434a81a6a953eb358a84167109ee99a13dfcac5675d1d680dc79fa556
|
|
| MD5 |
bfb72b20d68695e9fd4a9a8891aec6e7
|
|
| BLAKE2b-256 |
abdb202fa6f275dc285b9bd98f2c3fec4f83766381125d25b3732ab7099b93b2
|