runtime

Package runtime contains operations that interact with Go's runtime system, such as functions to control goroutines. It also includes the low-level type information used by the reflect package; see reflect's documentation for the programmable interface to the run-time type system.

API

    func BlockProfile(p []BlockProfileRecord) (n int, ok bool)
    func Breakpoint()
    func CPUProfile() []byte
    func Caller(skip int) (pc uintptr, file string, line int, ok bool)
    func Callers(skip int, pc []uintptr) int
    func GC()
    func GOMAXPROCS(n int) int
    func GOROOT() string
    func Goexit()
    func GoroutineProfile(p []StackRecord) (n int, ok bool)
    func Gosched()
    func KeepAlive(x interface{})
    func LockOSThread()
    func MemProfile(p []MemProfileRecord, inuseZero bool) (n int, ok bool)
    func MutexProfile(p []BlockProfileRecord) (n int, ok bool)
    func NumCPU() int
    func NumCgoCall() int64
    func NumGoroutine() int
    func ReadMemStats(m *MemStats)
    func ReadTrace() []byte
    func SetBlockProfileRate(rate int)
    func SetCPUProfileRate(hz int)
    func SetCgoTraceback(version int, traceback, context, symbolizer unsafe.Pointer)
    func SetFinalizer(obj interface{}, finalizer interface{})
    func SetMutexProfileFraction(rate int) int
    func Stack(buf []byte, all bool) int
    func StartTrace() error
    func StopTrace()
    func ThreadCreateProfile(p []StackRecord) (n int, ok bool)
    func UnlockOSThread()
    func Version() string

type BlockProfileRecord
type Error
type Frame
type Frames

    func CallersFrames(callers []uintptr) *Frames
    func (ci *Frames) Next() (frame Frame, more bool)

type Func

    func FuncForPC(pc uintptr) *Func
    func (f *Func) Entry() uintptr
    func (f *Func) FileLine(pc uintptr) (file string, line int)
    func (f *Func) Name() string

type MemProfileRecord

    func (r *MemProfileRecord) InUseBytes() int64
    func (r *MemProfileRecord) InUseObjects() int64
    func (r *MemProfileRecord) Stack() []uintptr

type MemStats
type StackRecord

    func (r *StackRecord) Stack() []uintptr

type TypeAssertionError

    func (e *TypeAssertionError) Error() string
    func (*TypeAssertionError) RuntimeError()

results matching ""

    No results matching ""