MCPcopy
hub / github.com/netdata/netdata / count

Method count

src/go/logger/testutils_test.go:47–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47func (h *captureHandler) count() int {
48 h.mu.Lock()
49 defer h.mu.Unlock()
50 return len(h.records)
51}
52
53func (h *captureHandler) last() capturedRecord {
54 h.mu.Lock()

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected