var testing.memStats
10 uses
testing (current package)
benchmark.go#L71: var memStats runtime.MemStats
benchmark.go#L123: runtime.ReadMemStats(&memStats)
benchmark.go#L124: b.startAllocs = memStats.Mallocs
benchmark.go#L125: b.startBytes = memStats.TotalAlloc
benchmark.go#L137: runtime.ReadMemStats(&memStats)
benchmark.go#L138: b.netAllocs += memStats.Mallocs - b.startAllocs
benchmark.go#L139: b.netBytes += memStats.TotalAlloc - b.startBytes
benchmark.go#L158: runtime.ReadMemStats(&memStats)
benchmark.go#L159: b.startAllocs = memStats.Mallocs
benchmark.go#L160: b.startBytes = memStats.TotalAlloc
![]() |
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. |