Product Details 商品属性
- Language: Go
- Database: 无
- License: License-Free
- Source Code: Fully Open Source
- Specification: Full Website Source
- Delivery: Automatic (instant download after payment)
Pyroscope is a program performance analysis platform written in pure GO language, which supports viewing the call relationship and CPU usage between programs, and uses charts and call trees to find performance problems in the code.
Peculiarity:
You can save the historical data of multiple apps
Data analysis granularity can be customized (10 seconds to years)
The CPU overhead is low, and the disk space requirements are not high
The user interface is comfortable and simple
Quick use (Ubuntu environment as an example):
1. Download the package
wget https://dl.pyroscope.io/release/pyroscope_0.0.37_amd64.deb
2. Installation
sudo apt-get install ./pyroscope_0.0.37_amd64.deb
3. Start the service
sudo systemctl start pyroscope-serversudo systemctl enable pyroscope-server
4. Analysis program (take GO program as an example)
package mainimport "github.com/pyroscope-io/pyroscope/pkg/agent/profiler"func main() {profiler.Start(profiler.Config{ApplicationName: "simple.golang.app",// Pyroscope server address
ServerAddress: "http://pyroscope-server:4040",
// Select the profilers to use; all are enabled by default
ProfileTypes: []profiler.ProfileType{profiler.ProfileCPU, profiler.ProfileAllocObjects, profiler.ProfileAllocSpace, profiler.ProfileInuseObjects, profiler.ProfileInuseSpace},
})
// Put your code here
}
5. Check the analysis on the http://localhost:4040/
