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

Function ExampleCPUProfile

example_test.go:16–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16func ExampleCPUProfile() {
17 // CPU profiling is the default profiling mode, but you can specify it
18 // explicitly for completeness.
19 defer profile.Start(profile.CPUProfile).Stop()
20}
21
22func ExampleMemProfile() {
23 // use memory profiling, rather than the default cpu 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…