weight

package
v0.0.0-...-a03bce3 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func (*Command) Execute

func (cmd *Command) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

func (*Command) Name

func (*Command) Name() string

func (*Command) SetFlags

func (cmd *Command) SetFlags(f *flag.FlagSet)

func (*Command) Synopsis

func (*Command) Synopsis() string

func (*Command) Usage

func (*Command) Usage() string

type Order

type Order string
const (
	Default     Order = ""
	BySize      Order = "size"
	ByTotalSize Order = "totalsize"
	ByName      Order = "name"
)

func (*Order) Set

func (mode *Order) Set(v string) error

func (*Order) String

func (mode *Order) String() string

type Sym

type Sym struct {
	Addr uint64
	Size int64
	Code rune // nm code (T for text, D for data, and so on)

	QualifiedName string
	Info          string

	Path []string
	Name string
}

func ParseSym

func ParseSym(s string) (*Sym, error)

type Tree

type Tree struct {
	Path   string
	Name   string
	Lookup map[string]*Tree
	Childs []*Tree

	TotalSize int64

	Size int64
	Syms []*Sym
}

func NewTree

func NewTree(name string) *Tree

func (*Tree) Insert

func (tree *Tree) Insert(sym *Sym, parent string, suffix []string)

func (*Tree) Sort

func (tree *Tree) Sort(sortfn func([]*Tree))

Jump to

Keyboard shortcuts

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