[Go]Understand the golang project performance analysis tool trace

When using PProf is not too detailed, you can use trace to view the trace.

This command can be used with PProf

Download the trace file first

curl http://domain name/debug/pprof/trace?seconds=20> trace.out 

 

use

go tool trace C:\Users\shihan1\Downloads\trace.out

Because it is monitoring 127.0.0.1, it may be inconvenient to access on the server line

 

 

 

To use this tool, you need to install graphviz first

Windows system can go here to download, pay attention to check and add environment variables during installation, otherwise you need to manually add

http://www.graphviz.org/download/#windows

You can see the analysis by visiting the address

 

 


Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *