analysis

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analysis

type Analysis struct {
	PathRgx  *regexp.Regexp
	StackRgx []*regexp.Regexp
	HeapRgx  []*regexp.Regexp
	Codes    []string
	Result   map[string]*Variable
}

Analysis is the struct storing analysis results.

func New

func New() *Analysis

New returns Analysis initialized with path regexp.

func (*Analysis) Start

func (a *Analysis) Start(data string)

Start starts parsing escape analysis of the output of go build -gcflags=-m

func (*Analysis) String

func (a *Analysis) String() string

type Variable

type Variable struct {
	Stacks []string
	Heaps  []string
}

Variable is the struct storing the variable should be stored in heap or struct according to the escape analysis

Jump to

Keyboard shortcuts

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