Go pprof: Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
=External= | =External= | ||
* https://go.dev/blog/pprof | * https://go.dev/blog/pprof | ||
* https://pkg.go.dev/net/http/pprof | |||
=Internal= | =Internal= |
Revision as of 01:59, 16 November 2024
External
Internal
Overview
Go comes with built-in frameworks for testing and profiling.
Concepts
Profile
Profile a Running Process
Dump the Goroutines into a Text File
curl -k https://localhost:8443/debug/pprof/goroutine?debug=2
Replace the port with the actual HTTP(S) port the process is listening on.