Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
37
func
ExampleMemProfileAllocs() {
38
// use allocs memory profiling.
39
defer
profile.Start(profile.MemProfileAllocs).Stop()
40
}
41
42
func
ExampleProfilePath() {
43
// set the location that the profile will be written to
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…