Go pprof

From NovaOrdis Knowledge Base
Revision as of 01:59, 16 November 2024 by Ovidiu (talk | contribs) (→‎External)
Jump to navigation Jump to search

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.