Skip to main content

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

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

Source distribution for pyroscope-beta 0.3.1
File Size Uploaded
pyroscope_beta-0.3.1.tar.gz 9.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pyroscope-beta 0.3.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.3.1 This release

4 release files

0.3.0

5 release files

0.2.0

1 release file

0.1.0

2 release files

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page