MCPcopy Create free account
hub / github.com/dispatchrun/wzprof / observe

Method observe

wzprof.go:341–344  ·  view source on GitHub ↗
(value int64)

Source from the content-addressed store, hash-verified

339}
340
341func (sc *stackCounter) observe(value int64) {
342 sc.value[0] += 1
343 sc.value[1] += value
344}
345
346func (sc *stackCounter) count() int64 {
347 return sc.value[0]

Callers 3

AfterMethod · 0.45
observeAllocMethod · 0.45
observeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected