github.com/pyroscope-io/godeltaprof@v0.1.3-0.20230906152420-0d7eeca7b8c1/internal/pprof/stub.go (about) 1 //go:build go1.16 && !go1.22 2 // +build go1.16,!go1.22 3 4 package pprof 5 6 // unsafe is required for go:linkname 7 import _ "unsafe" 8 9 //go:linkname runtime_expandFinalInlineFrame runtime/pprof.runtime_expandFinalInlineFrame 10 func runtime_expandFinalInlineFrame(stk []uintptr) []uintptr 11 12 //go:linkname runtime_cyclesPerSecond runtime/pprof.runtime_cyclesPerSecond 13 func runtime_cyclesPerSecond() int64