bloaty

package
v0.0.0-...-bbc9ce3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chart

func Chart(bloatyData map[string]*Segment, title string, out io.Writer) error

Chart converts the map of symbols to the format expected by GChart, and then generates an HTML page from that data.

func ReadCSV

func ReadCSV(data io.Reader, out chan<- bloatyOutput, file string) error

func RunBloaty

func RunBloaty(bloatyPath, idsPath string, topFiles, topSyms uint64, jobs int) (map[string]*Segment, error)

RunBloaty runs bloaty on all files in ids.txt, and returns a mapping of the symbols and files by segment.

Types

type File

type File struct {
	Symbols     map[string]*Symbol `json:"Symbols"`
	TotalFilesz uint64             `json:"TotalFilesz"`
}

File represents all data about one file in the produced Bloaty output

type Segment

type Segment struct {
	Files map[string]*File
}

Segment represents all data about one segment in the produced Bloaty output

type Symbol

type Symbol struct {
	Name     string   `json:"Name"`
	Vmsz     uint64   `json:"Vmsz"`
	Filesz   uint64   `json:"Filesz"`
	Binaries []string `json:"Binaries"`
}

Symbol represents data about one symbol in the produced Bloaty output.

Jump to

Keyboard shortcuts

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