global

package
v0.0.0-...-d69f115 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackageTable

type PackageTable map[string]*alloctable.Table

func NewPackageTable

func NewPackageTable() *PackageTable

func (*PackageTable) Consolidate

func (t *PackageTable) Consolidate()

Consolidate merges all per-file allocated tables into one

func (*PackageTable) FilterOut

func (t *PackageTable) FilterOut(prefix string) bool

func (*PackageTable) Load

func (t *PackageTable) Load(file string) error

func (*PackageTable) MergeWith

func (t *PackageTable) MergeWith(pt *PackageTable)

Merge current table with passed one

type Table

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

Table captures list of allocated symbols for each package and its files

func New

func New(symbolTableDir, goVersion string, snapshot snapshots.Snapshot) *Table

func (*Table) Add

func (t *Table) Add(packagePath, file string, table *alloctable.Table)

func (*Table) Drop

func (t *Table) Drop(pkg string)

func (*Table) Exists

func (t *Table) Exists(pkg string) bool

func (*Table) Files

func (t *Table) Files(packagePath string) []string

func (*Table) Lookup

func (t *Table) Lookup(packagePath, file string) (*alloctable.Table, error)

func (*Table) LookupPackage

func (t *Table) LookupPackage(pkg string) (PackageTable, error)

func (*Table) MergeFiles

func (t *Table) MergeFiles(packagePath string) (PackageTable, error)

MergeFiles merges all per-file allocated tables into one

func (*Table) Packages

func (t *Table) Packages() []string

func (*Table) Print

func (t *Table) Print(packagePath string, all bool)

func (*Table) Save

func (t *Table) Save(pkg string) error

Store allocation for a given package

Jump to

Keyboard shortcuts

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