Documentation
¶
Index ¶
- func Fastrand() uint32
- func FuncFromPointer(p unsafe.Pointer) func()
- func FuncToPC(fn func()) uintptr
- func FuncToPCUnsafe(p unsafe.Pointer) uintptr
- func FuncToPointer(fn func()) unsafe.Pointer
- func GIDPID() (gid uint64, pid int32)
- func GoroutineID() uint64
- func MachineID() int64
- func Pid() (id int)
- func Pin() int
- func ProcID() uint64
- func ProcessorID() int32
- func ReadUnaligned16(p unsafe.Pointer) uint64
- func ReadUnaligned32(p unsafe.Pointer) uint64
- func ReadUnaligned64(p unsafe.Pointer) uint64
- func RuntimeFuncOf(fn func()) *runtime.Func
- func Systemstack(fn func())
- func Unpin()
- func VisitCallerArgs(args *VisitArgs, fn func(visitArgs *VisitArgs))
- type FuncInfo
- func GetFuncInfo(fn func()) *FuncInfo[any]
- func GetFuncInfoUnsafe(pc uintptr) *FuncInfo[any]
- func GetMethod(pc uintptr) *FuncInfo[any]
- func GetMethodSlow(object interface{}, methodWrapperPC uintptr, methodName string) *FuncInfo[any]
- func GetRunnable(runnable Runnable) *FuncInfo[any]
- func VisitCaller(fn func(*FuncInfo[any])) *FuncInfo[any]
- func (f *FuncInfo[T]) Data() T
- func (f *FuncInfo[T]) Entry() uintptr
- func (f *FuncInfo[T]) File() string
- func (f *FuncInfo[T]) Formatted() string
- func (f *FuncInfo[T]) Line() int
- func (f *FuncInfo[T]) Method() reflect.Method
- func (f *FuncInfo[T]) MethodName() string
- func (f *FuncInfo[T]) Name() string
- func (f *FuncInfo[T]) NumIn() int
- func (f *FuncInfo[T]) NumOut() int
- func (f *FuncInfo[T]) PC() uintptr
- func (f *FuncInfo[T]) Receiver() string
- func (f *FuncInfo[T]) ReceiverSize() uintptr
- func (f *FuncInfo[T]) SetData(data T)
- func (f *FuncInfo[T]) String() string
- type FuncInfoMap
- func (fip *FuncInfoMap[T]) Get(fn func()) *FuncInfo[T]
- func (fip *FuncInfoMap[T]) GetMethod(methodWrapperPC uintptr) *FuncInfo[T]
- func (fip *FuncInfoMap[T]) GetMethodSlow(object interface{}, methodWrapperPC uintptr, methodName string) *FuncInfo[T]
- func (fip *FuncInfoMap[T]) GetPC(pc uintptr) *FuncInfo[T]
- func (fip *FuncInfoMap[T]) GetSlow(pc uintptr) *FuncInfo[T]
- type Runnable
- type VisitArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FuncFromPointer ¶
func FuncToPCUnsafe ¶
func FuncToPointer ¶
func GoroutineID ¶
func GoroutineID() uint64
func Pin ¶
func Pin() int
Pin pins current p, return pid. DO NOT USE if you don't know what this is.
func ProcessorID ¶
func ProcessorID() int32
func ReadUnaligned16 ¶
func ReadUnaligned32 ¶
func ReadUnaligned64 ¶
func RuntimeFuncOf ¶
func Systemstack ¶
func Systemstack(fn func())
func VisitCallerArgs ¶
Types ¶
type FuncInfo ¶
type FuncInfo[T any] struct { // contains filtered or unexported fields }
func GetFuncInfo ¶
func GetFuncInfoUnsafe ¶
func GetMethodSlow ¶
func GetRunnable ¶
func (*FuncInfo[T]) MethodName ¶
func (*FuncInfo[T]) ReceiverSize ¶
type FuncInfoMap ¶
type FuncInfoMap[T any] struct { // contains filtered or unexported fields }
func NewFuncInfoMap ¶
func NewFuncInfoMap[T any]() *FuncInfoMap[T]
func (*FuncInfoMap[T]) Get ¶
func (fip *FuncInfoMap[T]) Get(fn func()) *FuncInfo[T]
func (*FuncInfoMap[T]) GetMethod ¶
func (fip *FuncInfoMap[T]) GetMethod(methodWrapperPC uintptr) *FuncInfo[T]
func (*FuncInfoMap[T]) GetMethodSlow ¶
func (fip *FuncInfoMap[T]) GetMethodSlow( object interface{}, methodWrapperPC uintptr, methodName string, ) *FuncInfo[T]
func (*FuncInfoMap[T]) GetPC ¶
func (fip *FuncInfoMap[T]) GetPC(pc uintptr) *FuncInfo[T]
func (*FuncInfoMap[T]) GetSlow ¶
func (fip *FuncInfoMap[T]) GetSlow(pc uintptr) *FuncInfo[T]
Click to show internal directories.
Click to hide internal directories.