MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Run

Function Run

internal/trackers/label.go:16–20  ·  view source on GitHub ↗
(label string, f func())

Source from the content-addressed store, hash-verified

14}
15
16func Run(label string, f func()) {
17 var tr = Begin(label)
18 f()
19 tr.End()
20}
21
22func (this *tracker) End() {
23 SharedManager.Add(this.label, time.Since(this.startTime).Seconds()*1000)

Callers 2

initListMethod · 0.92
initPurgeTickerMethod · 0.92

Calls 2

BeginFunction · 0.85
EndMethod · 0.45

Tested by

no test coverage detected