Pyroscope Python integration
Project description
Pyroscope Python Integration
note: This is an early release. It might require local compilation, might be buggy and will be frequently updated. For the initial implementation, revert to version 2.x.
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
pyroscope.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.tag_wrapper({ "profile": "profile-1" }):
// Tagged profile
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
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 pyroscope-io-0.7.0.tar.gz.
File metadata
- Download URL: pyroscope-io-0.7.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d0c6cdae1146d1963bc18c76dcc88b361cd815a4bdb54878be79e8f76990db4
|
|
| MD5 |
fc4257704ab247155b71e44f2ff307a2
|
|
| BLAKE2b-256 |
fc4f998d1fab8ea36e3695aa98b4eff0844f8bf6e1826ce698b338b1eda0bd9a
|
File details
Details for the file pyroscope_io-0.7.0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: pyroscope_io-0.7.0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 7.5 MB
- Tags: Python 2, Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
379a3d08fcd476eb7d8cdccd24a84594b2b39a030bbc6421a7dfe0d6d9f8115c
|
|
| MD5 |
154f47c86e750d694adb4a0be6aaf47b
|
|
| BLAKE2b-256 |
31bf3f18f4447e715d94fb5dee86f9cef368e807801b5320c2d059926ca2f965
|
File details
Details for the file pyroscope_io-0.7.0-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.
File metadata
- Download URL: pyroscope_io-0.7.0-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 5.1 MB
- Tags: Python 2, Python 3, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
343aa2b42ec025d41b2dc11335afce6436d92a5505090740b143e660d645718a
|
|
| MD5 |
4613e4a5c71fbd7accbf1c2b61818491
|
|
| BLAKE2b-256 |
bb559ffc140d86639920f71c97631ba1e0508ebe8429c0ae69c8c82dd9544443
|
File details
Details for the file pyroscope_io-0.7.0-py2.py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: pyroscope_io-0.7.0-py2.py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 2, Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fea17ee598af85d9f89c31d3d4b0cceda6152c74fe38751bbdb7139e2743067
|
|
| MD5 |
aea14046ab7c73ee4f0fcf4e702aad33
|
|
| BLAKE2b-256 |
5a72164ec84af472f5f6f3962a82596f281d5cceb02f234ef891e56fd32a7537
|
File details
Details for the file pyroscope_io-0.7.0-py2.py3-none-macosx_10_15_x86_64.whl.
File metadata
- Download URL: pyroscope_io-0.7.0-py2.py3-none-macosx_10_15_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 2, Python 3, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfc4ddc5e688b063cffa1506b62f4690e7aa173add5ca951c840a4fcb86a59a1
|
|
| MD5 |
33d60de30455f7a5eb58aba04af19bf4
|
|
| BLAKE2b-256 |
ba266b5875498ce3e125aa5f4801f227dd6955951d9bde38a9547ec29865cd71
|