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

Method cleanup

cli/cli.go:93–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93func (f *Flags) cleanup() {
94 if f.cpuProfileFile != nil {
95 pprof.StopCPUProfile()
96 f.cpuProfileFile.Close()
97 }
98 if f.memprofile != "" {
99 runMemProfile(f.memprofile)
100 }
101 if f.traceFile != nil {
102 trace.Stop()
103 f.traceFile.Close()
104 }
105}
106
107func (f *Flags) runCPUProfile(path string) {
108 file, err := os.Create(path)

Callers 1

InitWithSignalsMethod · 0.95

Calls 2

runMemProfileFunction · 0.85
CloseMethod · 0.65

Tested by

no test coverage detected