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

Method internalOptions

driver/driver.go:37–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (o *Options) internalOptions() *plugin.Options {
38 var obj plugin.ObjTool
39 if o.Obj != nil {
40 obj = &internalObjTool{o.Obj}
41 }
42 var sym plugin.Symbolizer
43 if o.Sym != nil {
44 sym = &internalSymbolizer{o.Sym}
45 }
46 var httpServer func(args *plugin.HTTPServerArgs) error
47 if o.HTTPServer != nil {
48 httpServer = func(args *plugin.HTTPServerArgs) error {
49 return o.HTTPServer(((*HTTPServerArgs)(args)))
50 }
51 }
52 return &plugin.Options{
53 Writer: o.Writer,
54 Flagset: o.Flagset,
55 Fetch: o.Fetch,
56 Sym: sym,
57 Obj: obj,
58 UI: o.UI,
59 HTTPServer: httpServer,
60 HTTPTransport: o.HTTPTransport,
61 }
62}
63
64// HTTPServerArgs contains arguments needed by an HTTP server that
65// is exporting a pprof web interface.

Callers 1

PProfFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected