heaputil

package module
v0.0.0-...-497024f Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 3 Imported by: 1

README

heaputil

Library for parsing Go heap dumps.

Check example.

Output:

....
OS thread at address 0x54b300 (Go internal ID = 0, OS ID = 53413)
Data segment at address 0x546660 (content size = 16784, pointers = 1184)
BSS segment at address 0x54a800 (content size = 196376, pointers = 10185)
Registered finalizer at address 0xc000078060, FuncVal ptr address = 0x4b7078, type = 4832448, object type = 4832448
Registered finalizer at address 0xc0000a8000, FuncVal ptr address = 0x4b7078, type = 4832448, object type = 4832448
Registered finalizer at address 0xc0000a8060, FuncVal ptr address = 0x4b7078, type = 4832448, object type = 4832448
Registered finalizer at address 0xc0000a80c0, FuncVal ptr address = 0x4b7078, type = 4832448, object type = 4832448
....

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintDump

func PrintDump(rd *bufio.Reader) error

PrintDump prints the heap dump information to stdout. CAUTION: can be too verbose!

Types

type PointerData

type PointerData struct {
	Index    int
	Address  string
	Incoming string
	Outgoing string
}

type RecordData

type RecordData struct {
	RecordType  record.RecordType
	Repr        string
	HasPointers bool
	RowID       string
	Pointers    []PointerData
}

func ParseDump

func ParseDump(rd *bufio.Reader) ([]RecordData, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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