Options groups all the optional plugins into pprof.
| 26 | |
| 27 | // Options groups all the optional plugins into pprof. |
| 28 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected