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

Function ExampleTraceProfile

trace_test.go:5–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import "github.com/pkg/profile"
4
5func ExampleTraceProfile() {
6 // use execution tracing, rather than the default cpu profiling.
7 defer profile.Start(profile.TraceProfile).Stop()
8}

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…