MCPcopy 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
47func ExampleNoShutdownHook() {
48 // disable the automatic shutdown hook.
49 defer profile.Start(profile.NoShutdownHook).Stop()
50}
51
52func ExampleStart_withFlags() {
53 // use the flags package to selectively enable profiling.

Callers

nothing calls this directly

Calls 2

StartFunction · 0.92
StopMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…