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

Function ExampleStart

example_test.go:10–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func ExampleStart() {
11 // start a simple CPU profile and register
12 // a defer to Stop (flush) the profiling data.
13 defer profile.Start().Stop()
14}
15
16func ExampleCPUProfile() {
17 // CPU profiling is the default profiling mode, but you can specify it

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…