runtime.MemStats.Mallocs (field)
10 uses
runtime (current package)
heapdump.go#L571: dumpint(m.Mallocs)
mstats.go#L206: Mallocs uint64
mstats.go#L488: stats.Mallocs = memstats.nmalloc
runtime/pprof
pprof.go#L622: fmt.Fprintf(w, "# Mallocs = %d\n", s.Mallocs)
github.com/prometheus/client_golang/prometheus
go_collector.go#L125: eval: func(ms *runtime.MemStats) float64 { return float64(ms.Mallocs) },
testing
allocs.go#L29: mallocs := 0 - memstats.Mallocs
allocs.go#L38: mallocs += memstats.Mallocs
benchmark.go#L124: b.startAllocs = memStats.Mallocs
benchmark.go#L138: b.netAllocs += memStats.Mallocs - b.startAllocs
benchmark.go#L159: b.startAllocs = memStats.Mallocs
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |