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

Function durationTrace

shock-server/trace.go:32–37  ·  view source on GitHub ↗
(wait time.Duration)

Source from the content-addressed store, hash-verified

30}
31
32func durationTrace(wait time.Duration) {
33 name := traceFileName()
34 startTrace(name)
35 defer stopTrace()
36 time.Sleep(wait)
37}
38
39func startTrace(name string) (err error) {
40 if traceOn && (traceFile != nil) {

Callers 2

hourlyTraceFunction · 0.85
minuteTraceFunction · 0.85

Calls 3

traceFileNameFunction · 0.85
startTraceFunction · 0.85
stopTraceFunction · 0.85

Tested by

no test coverage detected