Go pprof: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 7: Line 7:
=Overview=
=Overview=
Go comes with built-in frameworks for testing and profiling.
Go comes with built-in frameworks for testing and profiling.
=Concepts=
==Profile==
=Profile a Running Process=
=Dump the Goroutines into a Text File=
<syntaxhighlight lang='bash'>
curl -k https://localhost:8443/debug/pprof/goroutine?debug=2
</syntaxhighlight>
Replace the port with the actual HTTP(S) port the process is listening on.

Revision as of 01:48, 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.