server

package
v0.0.0-...-d28cc36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL