MemProfileRate enables memory profiling at the preferred rate. It disables any previous profiling settings.
(rate int)
| 85 | // MemProfileRate enables memory profiling at the preferred rate. |
| 86 | // It disables any previous profiling settings. |
| 87 | func 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. |
no outgoing calls
searching dependent graphs…