MCPcopy Create free account
hub / github.com/MG-RAST/Shock / stopTrace

Function stopTrace

shock-server/trace.go:57–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func stopTrace() (err error) {
58 if traceOn {
59 trace.Stop()
60 traceOn = false
61 err = traceFile.Close()
62 } else {
63 err = fmt.Errorf("tracing is not enabled")
64 }
65 return
66}

Callers 2

durationTraceFunction · 0.85
mapRoutesFunction · 0.85

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected