MCPcopy Create free account
hub / github.com/google/pprof / Options

Struct Options

internal/plugin/plugin.go:28–46  ·  view source on GitHub ↗

Options groups all the optional plugins into pprof.

Source from the content-addressed store, hash-verified

26
27// Options groups all the optional plugins into pprof.
28type Options struct {
29 Writer Writer
30 Flagset FlagSet
31 Fetch Fetcher
32 Sym Symbolizer
33 Obj ObjTool
34 UI UI
35
36 // HTTPServer is a function that should block serving http requests,
37 // including the handlers specified in args. If non-nil, pprof will
38 // invoke this function if necessary to provide a web interface.
39 //
40 // If HTTPServer is nil, pprof will use its own internal HTTP server.
41 //
42 // A common use for a custom HTTPServer is to provide custom
43 // authentication checks.
44 HTTPServer func(args *HTTPServerArgs) error
45 HTTPTransport http.RoundTripper
46}
47
48// Writer provides a mechanism to write data under a certain name,
49// typically a filename.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected