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
pyroscope-io-0.7.0.tar.gz
(9.3 kB
view hashes)
Built Distributions
Close
Hashes for pyroscope_io-0.7.0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 379a3d08fcd476eb7d8cdccd24a84594b2b39a030bbc6421a7dfe0d6d9f8115c |
|
MD5 | 154f47c86e750d694adb4a0be6aaf47b |
|
BLAKE2b-256 | 31bf3f18f4447e715d94fb5dee86f9cef368e807801b5320c2d059926ca2f965 |
Close
Hashes for pyroscope_io-0.7.0-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 343aa2b42ec025d41b2dc11335afce6436d92a5505090740b143e660d645718a |
|
MD5 | 4613e4a5c71fbd7accbf1c2b61818491 |
|
BLAKE2b-256 | bb559ffc140d86639920f71c97631ba1e0508ebe8429c0ae69c8c82dd9544443 |
Close
Hashes for pyroscope_io-0.7.0-py2.py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fea17ee598af85d9f89c31d3d4b0cceda6152c74fe38751bbdb7139e2743067 |
|
MD5 | aea14046ab7c73ee4f0fcf4e702aad33 |
|
BLAKE2b-256 | 5a72164ec84af472f5f6f3962a82596f281d5cceb02f234ef891e56fd32a7537 |
Close
Hashes for pyroscope_io-0.7.0-py2.py3-none-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfc4ddc5e688b063cffa1506b62f4690e7aa173add5ca951c840a4fcb86a59a1 |
|
MD5 | 33d60de30455f7a5eb58aba04af19bf4 |
|
BLAKE2b-256 | ba266b5875498ce3e125aa5f4801f227dd6955951d9bde38a9547ec29865cd71 |