Documentation ¶
Overview ¶
Package runtime provides a mockable wrapper for runtime.
Index ¶
- type Impl
- func (*Impl) BlockProfile(p []runtime.BlockProfileRecord) (n int, ok bool)
- func (*Impl) Breakpoint()
- func (*Impl) CPUProfile() []byte
- func (*Impl) Caller(skip int) (pc uintptr, file string, line int, ok bool)
- func (*Impl) Callers(skip int, pc []uintptr) int
- func (*Impl) CallersFrames(callers []uintptr) *runtime.Frames
- func (*Impl) FuncForPC(pc uintptr) *runtime.Func
- func (*Impl) GC()
- func (*Impl) GOMAXPROCS(n int) int
- func (*Impl) GOROOT() string
- func (*Impl) Goexit()
- func (*Impl) GoroutineProfile(p []runtime.StackRecord) (n int, ok bool)
- func (*Impl) Gosched()
- func (*Impl) KeepAlive(x any)
- func (*Impl) LockOSThread()
- func (*Impl) MemProfile(p []runtime.MemProfileRecord, inuseZero bool) (n int, ok bool)
- func (*Impl) MutexProfile(p []runtime.BlockProfileRecord) (n int, ok bool)
- func (*Impl) NumCPU() int
- func (*Impl) NumCgoCall() int64
- func (*Impl) NumGoroutine() int
- func (*Impl) ReadMemStats(m *runtime.MemStats)
- func (*Impl) ReadTrace() []byte
- func (*Impl) SetBlockProfileRate(rate int)
- func (*Impl) SetCPUProfileRate(hz int)
- func (*Impl) SetCgoTraceback(version int, traceback unsafe.Pointer, context unsafe.Pointer, ...)
- func (*Impl) SetFinalizer(obj any, finalizer any)
- func (*Impl) SetMutexProfileFraction(rate int) int
- func (*Impl) Stack(buf []byte, all bool) int
- func (*Impl) StartTrace() error
- func (*Impl) StopTrace()
- func (*Impl) ThreadCreateProfile(p []runtime.StackRecord) (n int, ok bool)
- func (*Impl) UnlockOSThread()
- func (*Impl) Version() string
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) BlockProfile ¶
func (*Impl) BlockProfile(p []runtime.BlockProfileRecord) (n int, ok bool)
func (*Impl) Breakpoint ¶
func (*Impl) Breakpoint()
func (*Impl) CPUProfile ¶
func (*Impl) GOMAXPROCS ¶
func (*Impl) GoroutineProfile ¶
func (*Impl) GoroutineProfile(p []runtime.StackRecord) (n int, ok bool)
func (*Impl) LockOSThread ¶
func (*Impl) LockOSThread()
func (*Impl) MemProfile ¶
func (*Impl) MutexProfile ¶
func (*Impl) MutexProfile(p []runtime.BlockProfileRecord) (n int, ok bool)
func (*Impl) NumCgoCall ¶
func (*Impl) NumGoroutine ¶
func (*Impl) ReadMemStats ¶
func (*Impl) SetBlockProfileRate ¶
func (*Impl) SetCPUProfileRate ¶
func (*Impl) SetCgoTraceback ¶
func (*Impl) SetFinalizer ¶
func (*Impl) SetMutexProfileFraction ¶
func (*Impl) StartTrace ¶
func (*Impl) ThreadCreateProfile ¶
func (*Impl) ThreadCreateProfile(p []runtime.StackRecord) (n int, ok bool)
func (*Impl) UnlockOSThread ¶
func (*Impl) UnlockOSThread()
type Interface ¶
type Interface interface { BlockProfile(p []runtime.BlockProfileRecord) (n int, ok bool) Breakpoint() CPUProfile() []byte Caller(skip int) (pc uintptr, file string, line int, ok bool) Callers(skip int, pc []uintptr) int CallersFrames(callers []uintptr) *runtime.Frames FuncForPC(pc uintptr) *runtime.Func GC() GOMAXPROCS(n int) int GOROOT() string Goexit() GoroutineProfile(p []runtime.StackRecord) (n int, ok bool) Gosched() KeepAlive(x any) LockOSThread() MemProfile(p []runtime.MemProfileRecord, inuseZero bool) (n int, ok bool) MutexProfile(p []runtime.BlockProfileRecord) (n int, ok bool) NumCPU() int NumCgoCall() int64 NumGoroutine() int ReadMemStats(m *runtime.MemStats) ReadTrace() []byte SetBlockProfileRate(rate int) SetCPUProfileRate(hz int) SetCgoTraceback(version int, traceback unsafe.Pointer, context unsafe.Pointer, symbolizer unsafe.Pointer) SetFinalizer(obj any, finalizer any) SetMutexProfileFraction(rate int) int Stack(buf []byte, all bool) int StartTrace() error StopTrace() ThreadCreateProfile(p []runtime.StackRecord) (n int, ok bool) UnlockOSThread() Version() string }
Directories ¶
Path | Synopsis |
---|---|
Package cgo provides a mockable wrapper for runtime/cgo.
|
Package cgo provides a mockable wrapper for runtime/cgo. |
Package debug provides a mockable wrapper for runtime/debug.
|
Package debug provides a mockable wrapper for runtime/debug. |
Package metrics provides a mockable wrapper for runtime/metrics.
|
Package metrics provides a mockable wrapper for runtime/metrics. |
Package pprof provides a mockable wrapper for runtime/pprof.
|
Package pprof provides a mockable wrapper for runtime/pprof. |
Package trace provides a mockable wrapper for runtime/trace.
|
Package trace provides a mockable wrapper for runtime/trace. |
Click to show internal directories.
Click to hide internal directories.