Skip to content

py-spy fork for sending profiling data to datakit

License

Notifications You must be signed in to change notification settings

GuanceCloud/py-spy-for-datakit

This branch is 18 commits ahead of, 60 commits behind benfred/py-spy:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
zhangyi
May 4, 2023
17499ea · May 4, 2023
Jun 23, 2019
May 4, 2023
Sep 5, 2022
Nov 24, 2022
Sep 23, 2019
May 4, 2023
Nov 24, 2022
Nov 17, 2022
May 16, 2022
May 4, 2023
May 4, 2023
Sep 23, 2019
Nov 25, 2022
Jul 29, 2022
Nov 17, 2019
Sep 5, 2022
Nov 24, 2022
Sep 7, 2022

Repository files navigation

py-spy-for-datakit: Send profiling data to datakit instead of writing to a file

Installation

Prebuilt binary wheels can be installed from PyPI with:

pip install py-spy-for-datakit

If you have rust and cargo installed, py-spy-for-datakit can also be installed with: cargo install py-spy-for-datakit.

In addition to above, you can also download prebuilt binaries for most platforms from the GitHub Releases Page directly.

Usage

py-spy-for-datakit works from the command line and takes either the PID of the program you want to sample from or the command line of the python program you want to run.

# Use process PID
sudo py-spy-for-datakit datakit --host 127.0.0.1 --port 9295 --service py-spy-demo --env dev --version v0.1 --pid 12345
# OR use your app starting command line
sudo py-spy-for-datakit datakit --host 127.0.0.1 --port 9295 --service py-spy-demo --env dev --version v0.1 -- python myapp.py

For more usage help, use py-spy-for-datakit help datakit command or refer to py-spy manual

About

py-spy fork for sending profiling data to datakit

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 97.7%
  • Python 2.2%
  • Shell 0.1%