Count returns the number of allocation stacks recorded in p.
()
| 87 | |
| 88 | // Count returns the number of allocation stacks recorded in p. |
| 89 | func (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. |