MCPcopy Create free account
hub / github.com/brimdata/super / runMemProfile

Function runMemProfile

cli/cli.go:116–124  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

114}
115
116func runMemProfile(path string) {
117 f, err := os.Create(path)
118 if err != nil {
119 log.Fatal(err)
120 }
121 runtime.GC()
122 pprof.Lookup("allocs").WriteTo(f, 0)
123 f.Close()
124}
125
126func FileExists(path string) bool {
127 if path == "-" {

Callers 1

cleanupMethod · 0.85

Calls 2

LookupMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected