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

Method Count

mem.go:89–94  ·  view source on GitHub ↗

Count returns the number of allocation stacks recorded in p.

()

Source from the content-addressed store, hash-verified

87
88// Count returns the number of allocation stacks recorded in p.
89func (p *MemoryProfiler) Count() int {
90 p.mutex.Lock()
91 n := p.alloc.len()
92 p.mutex.Unlock()
93 return n
94}
95
96// SampleType returns the set of value types present in samples recorded by the
97// memory profiler.

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected