Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
import
"github.com/pkg/profile"
4
5
func
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
Start
Function · 0.92
Stop
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…