Pprof Web Save Abandoned

Small and easy-to-use golang pprof web UI, support Docker, x86, ARM, macOS

Project README

Pprof Web Visualizer

CodeQL Security Scan Release Go Report Card Docker Image

ENGLISH | 中文文档

Golang Pprof Web Visualizer is a web application that visualizes the output of the pprof tool in a web browser.

The Size of the binary is < 10MB.

Support on WebUI, x86, ARM, Linux and MacOS.

preview 01

preview 02

Download

Download the binaries for your system and architecture from the release page.

If you prefer docker, you can use the following command (DockerHub):

docker pull lovecho/pprof-web:latest
docker pull lovecho/pprof-web:latest

Usage

Use default parameters to format all configuration files in the current directory:

./pprof-web

This will start a web server on port 8080.

Then you can access it at localhost:8080.

Docker Usage

There is no difference between using parameters in Docker and the above, for example, we start a Web UI formatting tool service in Docker:

docker run --rm -it -p 8080:8080 lovecho/pprof-web:latest

Live Demo

You can access live demo at pprof.gotool.tech.

Best practice

Upload the pprof result by curl inside a remote machine and then access the web UI from your local machine.

# upload by curl
curl -F "file=@$FILE_PATH" https://pprof.gotool.tech/submit -v

Then you can check the output and find something like below

< HTTP/2 307
< date: Thu, 27 Apr 2023 08:14:54 GMT
< location: /pprof/?file_id=XXXXXXXX
< vary: Accept-Encoding
< cf-cache-status: DYNAMIC

You can then visit https://pprof.gotool.tech/pprof/?file_id=XXXXXXXX to view your pprof result.

Credit

Web Components:

Open Source Agenda is not affiliated with "Pprof Web" Project. README Source: zjc17/pprof-web
Stars
25
Open Issues
1
Last Commit
1 year ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating