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

Function ExampleMemProfileRate

example_test.go:27–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func ExampleMemProfileRate() {
28 // use memory profiling with custom rate.
29 defer profile.Start(profile.MemProfileRate(2048)).Stop()
30}
31
32func ExampleMemProfileHeap() {
33 // use heap memory profiling.

Callers

nothing calls this directly

Calls 3

StartFunction · 0.92
MemProfileRateFunction · 0.92
StopMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…