proc

package
v0.0.0-...-770b82c Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CeilDivide

func CeilDivide(n, d int64) int64

func ObjectReference

func ObjectReference(t *proc.Target, filename string) error

ObjectReference scanning goroutine stack and global vars to search all heap objects they reference, and outputs the reference relationship to the filename with pprof format.

Types

type Address

type Address uint64

Address provides a simple encapsulation of address operations.

func (Address) Add

func (a Address) Add(x int64) Address

Add adds x to address a.

func (Address) Align

func (a Address) Align(x int64) Address

Align rounds a up to a multiple of x. x must be a power of 2.

func (Address) Sub

func (a Address) Sub(b Address) int64

Sub subtracts b from a. Requires a >= b.

type HeapScope

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

HeapScope contains the proc info for this round of scanning.

type NameOff

type NameOff int32

type ObjRefScope

type ObjRefScope struct {
	*HeapScope
	// contains filtered or unexported fields
}

type ReferenceVariable

type ReferenceVariable struct {
	Addr     Address
	Name     string
	RealType godwarf.Type
	// contains filtered or unexported fields
}

ReferenceVariable represents a variable. It contains the address, name, type and other information parsed from both the Dwarf information and the memory of the debugged process.

type TFlag

type TFlag uint8

type Type

type Type struct {
	Size_       uintptr
	PtrBytes    uintptr
	Hash        uint32
	TFlag       TFlag
	Align_      uint8
	FieldAlign_ uint8
	Kind_       uint8
	Equal       func(unsafe.Pointer, unsafe.Pointer) bool
	GCData      *byte
	Str         NameOff
	PtrToThis   TypeOff
}

Type copied from go/src/internal/abi/type.go.

type TypeOff

type TypeOff int32

Jump to

Keyboard shortcuts

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