MCPcopy Create free account
hub / github.com/pkg/profile / ExampleProfilePath

Function ExampleProfilePath

example_test.go:42–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func ExampleProfilePath() {
43 // set the location that the profile will be written to
44 defer profile.Start(profile.ProfilePath(os.Getenv("HOME"))).Stop()
45}
46
47func ExampleNoShutdownHook() {
48 // disable the automatic shutdown hook.

Callers

nothing calls this directly

Calls 3

StartFunction · 0.92
ProfilePathFunction · 0.92
StopMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…