gongxun0928 / pyroscope

Continuous Profiling Platform! Debug performance issues down to a single line of code

Home Page:https://pyroscope.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pyroscope

Go Tests Status JS Tests Status Go Report Apache 2 License FOSSA Status Latest release DockerHub GoDoc

Website Docs Demo Examples Slack

Read this in other languages.

中文 (Simplified)

What is Pyroscope?

Pyroscope is an open source continuous profiling platform. It will help you:

  • Find performance issues and bottlenecks in your code
  • Resolve issues with high CPU utilization
  • Understand the call tree of your application
  • Track changes over time

Pyroscope GIF Demo

Features

  • Can store years of profiling data from multiple applications
  • You can look at years of data at a time or zoom in on specific events
  • Low CPU overhead
  • Efficient compression, low disk space requirements
  • Snappy UI

Add Pyroscope Server locally in 2 steps:

Pyroscope supports all major architectures and is very easy to install. for example here is how you install on a mac:

# install pyroscope
brew install pyroscope-io/brew/pyroscope

# start pyroscope server:
pyroscope server

Send data to server via Pyroscope agent (language specific)

For more documentation on how to add the Pyroscope agent to your code see the agent documentation on our website.

Example Code

We also have language-specific examples (using Docker) of how to run the server and agent together

Deployment Diagram

Deployment Diagram

Documentation

For more information on how to use Pyroscope with other programming languages, install it on Linux, or use it in production environment, check out our documentation:

Downloads

You can download the latest version of pyroscope for macOS, linux and Docker from our Downloads page.

Supported Integrations

  • Ruby (via rbspy)
  • Python (via py-spy)
  • Go (via pprof)
  • Linux eBPF (via profile.py from bcc-tools)
  • PHP (via phpspy)
  • .NET (via dotnet trace)
  • Java (via async-profiler)
  • Rust (in progress via pprof-rs)
  • Node (seeking contributors)

Let us know what other integrations you want to see in our issues or in our slack.

Credits

Pyroscope is possible thanks to the excellent work of many people, including but not limited to:

  • Brendan Gregg — inventor of Flame Graphs
  • Julia Evans — creator of rbspy — sampling profiler for Ruby
  • Vladimir Agafonkin — creator of flamebearer — fast flamegraph renderer
  • Ben Frederickson — creator of py-spy — sampling profiler for Python
  • Adam Saponara — creator of phpspy — sampling profiler for PHP
  • Alexei Starovoitov, Brendan Gregg, and many others who made BPF based profiling in Linux kernel possible

Contributing

To start contributing, check out our Contributing Guide

Thanks to the contributors of Pyroscope!

About

Continuous Profiling Platform! Debug performance issues down to a single line of code

https://pyroscope.io/

License:Apache License 2.0


Languages

Language:Go 68.3%Language:TypeScript 16.2%Language:JavaScript 8.3%Language:SCSS 2.2%Language:Jsonnet 1.5%Language:Shell 1.2%Language:HTML 0.8%Language:Makefile 0.7%Language:Dockerfile 0.5%Language:CSS 0.3%