Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
32
func
ExampleMemProfileHeap() {
33
// use heap memory profiling.
34
defer
profile.Start(profile.MemProfileHeap).Stop()
35
}
36
37
func
ExampleMemProfileAllocs() {
38
// use allocs memory profiling.
Callers
nothing calls this directly
Calls
2
Start
Function · 0.92
Stop
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…