Pyroscope Python Integration --Beta--
note: This is a beta release. It requires local compilation, might be buggy and is frequently updated. For the initial implementation, find it here. Please report any issues.
Installation
- You need the Rust toolchain to compile the library locally. To install Rust:
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
export PATH=$PATH:/root/.cargo/bin
- libunwind8-dev is also required. For Ubuntu:
apt-get install -y libunwind8-dev
- Building/Insalling from PyPi package
pip install pyroscope_beta
- Building/Installing from source
Change directory to pyroscope_ffi/python and run
make install
Configuration
Configuration is similar to the old package except for application_name:
import pyroscope_beta
pyroscope_beta.configure(
application_name = "python.app",
server_address = "http://localhost:4040",
tags = {
"key": "value",
}
)
Adding tags
Tags passed to configure are global. To tag code locally, you can use:
with pyroscope_beta.tag_wrapper({ "profile": "profile-1" }):
// Tagged profile
Metadata
Release files for pyroscope-beta 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyroscope_beta-0.3.1.tar.gz | 9.2 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyroscope_beta-0.3.1-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl | Python 3, Python 2 | none | Linux glibc 2.12+ x86-64 | Details |
| pyroscope_beta-0.3.1-py2.py3-none-macosx_11_0_arm64.whl | Python 3, Python 2 | none | macOS 11.0+ ARM64 | Details |
| pyroscope_beta-0.3.1-py2.py3-none-macosx_10_15_x86_64.whl | Python 3, Python 2 | none | macOS 10.15+ x86-64 | Details |
Total release size: 9.6 MB
Release files / pyroscope_beta-0.3.1.tar.gz
| Download URL | pyroscope_beta-0.3.1.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c360279c418d1a82e4f15ea4ff89f2a5698c9c29036ce1b020d045a5519aa478
|
|
BLAKE2b-256 checksum How to use checksums |
2b978e916b3f0085a4fa5c2d96ed54675205131e36c76d3f88744b61c50626ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / pyroscope_beta-0.3.1-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
| Download URL | pyroscope_beta-0.3.1-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
|---|---|
| Size | 5.1 MB |
| Tags | Linux glibc 2.12+ x86-64 Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c766bdbcc01e8b700358d23d1701f9f81b2ca469c3eee7f86daf305de5261b5d
|
|
BLAKE2b-256 checksum How to use checksums |
5630d47e46d8929c7a5ea34028acb542f887b23fb0778e62bf8b98de010d664d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / pyroscope_beta-0.3.1-py2.py3-none-macosx_11_0_arm64.whl
| Download URL | pyroscope_beta-0.3.1-py2.py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | Python 2 Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c2f1360838701406b95ce0d8bdb7d056a586c5c8478c6c665fcf17e33d1aafac
|
|
BLAKE2b-256 checksum How to use checksums |
a2e3d79d13c0778de6ab2fdb628e723df00147ff34e59cb4b449fb627ef34ba7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / pyroscope_beta-0.3.1-py2.py3-none-macosx_10_15_x86_64.whl
| Download URL | pyroscope_beta-0.3.1-py2.py3-none-macosx_10_15_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | Python 2 Python 3 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
3ae6f224c290d8907bd410182e52e3ded2f8199c3be1a8881fa614eac68ab507
|
|
BLAKE2b-256 checksum How to use checksums |
ee794fc203d5baaf8f5abfc9b6d4d9afdef4c8f1723845348f6e470b77b56827
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|