github.com/grafana/pyroscope-go/godeltaprof@v0.1.8-0.20240513050943-1b1f97373e2a/internal/pprof/stub.go (about)

     1  package pprof
     2  
     3  // unsafe is required for go:linkname
     4  import _ "unsafe"
     5  
     6  //go:linkname runtime_expandFinalInlineFrame runtime/pprof.runtime_expandFinalInlineFrame
     7  func runtime_expandFinalInlineFrame(stk []uintptr) []uintptr
     8  
     9  //go:linkname runtime_cyclesPerSecond runtime/pprof.runtime_cyclesPerSecond
    10  func runtime_cyclesPerSecond() int64
    11  
    12  func Runtime_cyclesPerSecond() int64 {
    13  	return runtime_cyclesPerSecond()
    14  }