Statistical CPU and wall-clock profilers for Python
Project description
zprofile
Statistical (sampling) CPU and wall-clock profilers for Python, derived from google-cloud-profiler.
Google Cloud Python profiling agent
Python profiling agent for Google Cloud Profiler.
See Google Cloud Profiler profiling Python code for detailed documentation.
Supported OS
Linux. Profiling Python applications is supported for Linux kernels whose
standard C library is implemented with glibc
or with musl
. For configuration
information specific to Linux Alpine kernels, see
Running on Linux Alpine.
Supported Python Versions
Python >= 3.7 and <= 3.11
Installation & usage
-
Install the profiler package using PyPI:
pip3 install zprofile
-
Enable the profiler in your application:
from zprofile.cpu_profiler import CPUProfiler p = CPUProfiler() pprof = p.profile(30) # seconds with open("profile.pprof", "wb") as f: f.write(pprof)
-
View the profile with the
pprof
tool:$ go tool pprof -http localhost:8080 profile.pprof
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file zprofile-1.0.13.tar.gz
.
File metadata
- Download URL: zprofile-1.0.13.tar.gz
- Upload date:
- Size: 28.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 406bef1db27f7e9f2b7050ffdfeebe266dc89e248a0cc9f41ab882bb9c207e0d |
|
MD5 | 427ed6cb200376eb7e2a3ce080187828 |
|
BLAKE2b-256 | 1862c196e00f62a4856c3de71b55c8569b28b75a826a531854551fe33e45d263 |
File details
Details for the file zprofile-1.0.13-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: zprofile-1.0.13-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 751.5 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c153758d5aeb6316e00780aeac86597c451f009216a47005b3e057a5b52d975 |
|
MD5 | 4c5ba96dacc02bfe6b424080eabf03a2 |
|
BLAKE2b-256 | c514ed310e62e5e74432440f2c683b339985029bf494da8686a68fc6b7f58912 |
File details
Details for the file zprofile-1.0.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: zprofile-1.0.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 750.3 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02d50e818e2d7c92ee01c83ac72d56878b915576ab0a7cb075e7509b2c95fe3b |
|
MD5 | baa857b192e855a7257049dbc59a2062 |
|
BLAKE2b-256 | 9dd1e51214030238a2f172b781367af829d193e5572a8882c9aa9cdd81dd39c9 |
File details
Details for the file zprofile-1.0.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: zprofile-1.0.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 748.4 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e6940530147442d302a229ffa441d6ecbf5681974b2a624aaa9af28e77c6a53 |
|
MD5 | b9d696e713f4ad66923c118a32aaa5c9 |
|
BLAKE2b-256 | e47e3f160cd94b7ba336886ced25615118224f86c7a0dbf37798b6778cffe020 |
File details
Details for the file zprofile-1.0.13-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: zprofile-1.0.13-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 747.7 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bba7dfe456134df8f315a0923fe8b571c28bdf80f671a619a7393f6aa2435f4 |
|
MD5 | f14a35ed06f829fd4be266541fee894c |
|
BLAKE2b-256 | 78b779cd47ee764148c4d05f193d2f4f64d81ec38fda547d8859179ab1dcf613 |
File details
Details for the file zprofile-1.0.13-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: zprofile-1.0.13-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 747.8 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f783984fb8ef50deb4c1729cc135863e5f7a6abf1e4c1b1a902c7f81a4ce78f8 |
|
MD5 | 61b59b06cce8bbcbc05ccef4ee506125 |
|
BLAKE2b-256 | f5098ba9f994a033fcad7eca956f25d74ff193ad6471ef1e34441dbcc49adb3d |
File details
Details for the file zprofile-1.0.13-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: zprofile-1.0.13-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 749.9 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b88004aa004b0ec3a0ee7e052e8744d6b7abbe6c9fef1021a3eeceae169690cf |
|
MD5 | 4998dbbec5e58d89ea53bd8509231de7 |
|
BLAKE2b-256 | c57bbe1920d98b78807c68b6e1eddb2dbcc56f069020236f132525775944039a |
File details
Details for the file zprofile-1.0.13-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: zprofile-1.0.13-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 746.9 kB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d4d6ff46db17ad2976636364e4a6a2d43c05ba98ea63f6fc8edeb6c92d7fc49 |
|
MD5 | 37b65f42d8729d8870775833ad68996a |
|
BLAKE2b-256 | 78902816fe4d029e9483855a98fdc9f3d04e05f9e65c61efc5995be7839d28d5 |