MCPcopy Create free account
hub / github.com/pkg/profile / ExampleMemProfileHeap

Function ExampleMemProfileHeap

example_test.go:32–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func ExampleMemProfileHeap() {
33 // use heap memory profiling.
34 defer profile.Start(profile.MemProfileHeap).Stop()
35}
36
37func ExampleMemProfileAllocs() {
38 // use allocs memory profiling.

Callers

nothing calls this directly

Calls 2

StartFunction · 0.92
StopMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…