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

Function makeWebInterface

internal/driver/webui.go:49–61  ·  view source on GitHub ↗
(p *profile.Profile, copier profileCopier, opt *plugin.Options)

Source from the content-addressed store, hash-verified

47}
48
49func makeWebInterface(p *profile.Profile, copier profileCopier, opt *plugin.Options) (*webInterface, error) {
50 settingsFile, err := settingsFileName()
51 if err != nil {
52 return nil, err
53 }
54 return &webInterface{
55 prof: p,
56 copier: copier,
57 options: opt,
58 help: make(map[string]string),
59 settingsFile: settingsFile,
60 }, nil
61}
62
63// maxEntries is the maximum number of entries to print for text interfaces.
64const maxEntries = 50

Callers 1

serveWebInterfaceFunction · 0.85

Calls 1

settingsFileNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…