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

     1  //go:build go1.21
     2  // +build go1.21
     3  
     4  package pprof
     5  
     6  import (
     7  	"runtime"
     8  	_ "unsafe"
     9  )
    10  
    11  // runtime_FrameStartLine is defined in runtime/symtab.go.
    12  //
    13  //go:noescape
    14  //go:linkname runtime_FrameStartLine runtime/pprof.runtime_FrameStartLine
    15  func runtime_FrameStartLine(f *runtime.Frame) int
    16  
    17  // runtime_FrameSymbolName is defined in runtime/symtab.go.
    18  //
    19  //go:noescape
    20  //go:linkname runtime_FrameSymbolName runtime/pprof.runtime_FrameSymbolName
    21  func runtime_FrameSymbolName(f *runtime.Frame) string