Skip to main content

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

  1. 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
  1. libunwind8-dev is also required. For Ubuntu:
apt-get install -y libunwind8-dev 
  1. Building/Insalling from PyPi package
pip install pyroscope_beta
  1. 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


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 details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyroscope_io-0.7.0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.5 MB view details)

Uploaded Python 2Python 3manylinux: glibc 2.17+ ARM64

pyroscope_io-0.7.0-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (5.1 MB view details)

Uploaded Python 2Python 3manylinux: glibc 2.12+ x86-64

pyroscope_io-0.7.0-py2.py3-none-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded Python 2Python 3macOS 11.0+ ARM64

pyroscope_io-0.7.0-py2.py3-none-macosx_10_15_x86_64.whl (2.3 MB view details)

Uploaded Python 2Python 3macOS 10.15+ x86-64

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

Hashes for pyroscope-io-0.7.0.tar.gz
Algorithm Hash digest
SHA256 6d0c6cdae1146d1963bc18c76dcc88b361cd815a4bdb54878be79e8f76990db4
MD5 fc4257704ab247155b71e44f2ff307a2
BLAKE2b-256 fc4f998d1fab8ea36e3695aa98b4eff0844f8bf6e1826ce698b338b1eda0bd9a

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.7.0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

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

See more details on using hashes here.

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

File hashes

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

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.7.0-py2.py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

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

See more details on using hashes here.

File details

Details for the file pyroscope_io-0.7.0-py2.py3-none-macosx_10_15_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page