Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchDiagnostic ¶
func FetchDiagnostic(host string, diag *driver.Diagnostics, typ diagnostics.Type, name string) (stop func())
FetchDiagnostic reads a profile or trace from the pprof endpoint at host. The returned stop function finalizes the diagnostic file on disk and returns the total size in bytes. Because of limitations of net/http/pprof, this cannot actually stop collection on the server side, so stop should only be called when the server is about to be shut down.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.