Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pkg/profile
/ ExampleNoShutdownHook
Function
ExampleNoShutdownHook
example_test.go:47–50 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
45
}
46
47
func
ExampleNoShutdownHook() {
48
// disable the automatic shutdown hook.
49
defer
profile.Start(profile.NoShutdownHook).Stop()
50
}
51
52
func
ExampleStart_withFlags() {
53
// use the flags package to selectively enable 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…