pyroscope-io-0.7.0.tar.gz

Source distribution

Package Metadata

Metadata parsed from pyroscope-io-0.7.0/PKG-INFO
Classifier Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Operating System :: MacOS
Operating System :: POSIX
Operating System :: Unix
Programming Language :: Python
Topic :: Software Development
Topic :: Software Development :: Debuggers
Topic :: Utilities
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 ``` 2. libunwind8-dev is also required. For Ubuntu: ``` apt-get install -y libunwind8-dev ``` 3. Building/Insalling from PyPi package ``` pip install pyroscope_beta ``` 4. 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 ```
Description-Content-Type text/markdown
Home-page https://proscope.io
License Apache 2.0
Maintainer Abid Omar
Maintainer-email [email protected]
Metadata-Version 2.1
Name pyroscope-io
Platform any
Project-URL Documentation, https://proscope.io
Bug Tracker, https://proscope.io
Discussions, https://proscope.io
Changelog, https://proscope.io
Summary Pyroscope Python integration
Version 0.7.0

Package Files

Click a file name below to view its contents.