heap

package
v0.0.0-...-776f117 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address uint64

type Goroutine

type Goroutine struct{}

type Goroutines

type Goroutines struct {
	// contains filtered or unexported fields
}

func (Goroutines) Add

func (g Goroutines) Add(record heapfile.Goroutine)

type Heap

type Heap struct {
	// contains filtered or unexported fields
}

func New

func New(byteOrder binary.ByteOrder) *Heap

func (*Heap) Goroutines

func (h *Heap) Goroutines() Goroutines

func (*Heap) Objects

func (h *Heap) Objects() Objects

func (*Heap) StackFrames

func (h *Heap) StackFrames() StackFrames

func (*Heap) WalkPointers

func (h *Heap) WalkPointers(start Address, objectFn func(object Object))

type Object

type Object struct {
	Pointers []Address
	Addr     Address
	Size     uint64
}

type ObjectStats

type ObjectStats struct {
	OwnedSize  uint64
	OwnedCount uint64
}

type Objects

type Objects struct {
	// contains filtered or unexported fields
}

func (Objects) Add

func (o Objects) Add(object heapfile.Object)

func (Objects) Stats

func (o Objects) Stats(addr Address) ObjectStats

func (Objects) Walk

func (o Objects) Walk(fn func(object Object) error) error

type StackFrame

type StackFrame struct {
	Pointers []Address
	FuncName string
	Size     uint64
	Addr     Address
}

type StackFrames

type StackFrames struct {
	// contains filtered or unexported fields
}

func (StackFrames) Add

func (s StackFrames) Add(frame heapfile.StackFrame)

func (StackFrames) HasAddress

func (s StackFrames) HasAddress(addr Address) []StackFrame

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL