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

Function ExampleMemProfileAllocs

example_test.go:37–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func ExampleMemProfileAllocs() {
38 // use allocs memory profiling.
39 defer profile.Start(profile.MemProfileAllocs).Stop()
40}
41
42func ExampleProfilePath() {
43 // set the location that the profile will be written to

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…