Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CeilDivide ¶
func CeilDivide2 ¶ added in v0.0.7
func SetMaxRefDepth ¶ added in v0.0.4
func SetMaxRefDepth(depth int)
func Str2uint64s ¶ added in v0.0.10
Str2uint64s exports str2uint64s for testing purposes
Types ¶
type Address ¶
type Address uint64
Address provides a simple encapsulation of address operations.
type HeapScope ¶
type HeapScope struct {
// contains filtered or unexported fields
}
HeapScope contains the proc info for this round of scanning.
type ObjRefScope ¶
type ObjRefScope struct {
*HeapScope
// contains filtered or unexported fields
}
func ObjectReference ¶
func ObjectReference(t *proc.Target, filename string) (*ObjRefScope, 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. Returns the ObjRefScope for testing purposes.
func (*ObjRefScope) GetProfileDataForTest ¶ added in v0.0.10
func (s *ObjRefScope) GetProfileDataForTest() (nodes map[string]*profileNode, strings []string, stringMap map[string]int)
GetProfileDataForTest exports all internal profile data for testing purposes. This allows direct validation of reference analysis without protobuf parsing.
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.
func ToReferenceVariable ¶ added in v0.0.6
func ToReferenceVariable(v *proc.Variable) *ReferenceVariable