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

Function MemProfileRate

profile.go:87–92  ·  view source on GitHub ↗

MemProfileRate enables memory profiling at the preferred rate. It disables any previous profiling settings.

(rate int)

Source from the content-addressed store, hash-verified

85// MemProfileRate enables memory profiling at the preferred rate.
86// It disables any previous profiling settings.
87func MemProfileRate(rate int) func(*Profile) {
88 return func(p *Profile) {
89 p.memProfileRate = rate
90 p.mode = memMode
91 }
92}
93
94// MemProfileHeap changes which type of memory profiling to profile
95// the heap.

Callers 1

ExampleMemProfileRateFunction · 0.92

Calls

no outgoing calls

Tested by 1

ExampleMemProfileRateFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…