data

package
v0.0.0-...-5dfffbf Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Project       string        `json:"project"`
	DynamicConfig DynamicConfig `json:"dynamic"`
	TraceLibrary  string        `json:"trace_lib"`
	ClearFolder   string        `json:"clear"`
	FetchDeps     bool          `json:"fetch_deps"`
	GoRoot        string        `json:"go_root"`
}

type Duration

type Duration time.Duration

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (Duration) ToStdLib

func (d Duration) ToStdLib() time.Duration

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(data []byte) error

type DynamicConfig

type DynamicConfig struct {
	BenchmarkRegex        string     `json:"bench_regex"`
	WarmupIterations      int        `json:"wi"`
	MeasurementIterations int        `json:"i"`
	BenchTime             Duration   `json:"bench_time"`
	BenchTimeout          Duration   `json:"bench_timeout"`
	BenchDuration         Duration   `json:"bench_duration"`
	BenchMem              bool       `json:"bench_mem"`
	Runs                  int        `json:"runs"`
	RunsTimeout           Duration   `json:"runs_timeout"`
	RunDuration           Duration   `json:"run_duration"`
	Profile               Profile    `json:"profile"`
	ProfileDir            string     `json:"profile_dir"`
	Regression            float32    `json:"regression"`
	Functions             []Function `json:"functions"`
	Rmit                  bool       `json:"rmit"`
}

type File

type File []Function

type FileMap

type FileMap map[string]File

type Function

type Function struct {
	Pkg       string `json:"pkg"`
	File      string `json:"file"`
	Name      string `json:"name"`
	Receiver  string `json:"recv"`
	StartLine int    `json:"start_line"`
	EndLine   int    `json:"end_line"`
}

Function represents a Go function. It does not contain function parameters nor return types, as they are not part of the function signature. The method receiver is part of the signature (if available).

func (Function) String

func (f Function) String() string

func (Function) StringWithLines

func (f Function) StringWithLines() string

type PackageMap

type PackageMap map[string]FileMap

type Profile

type Profile string
const (
	NoProfile   Profile = "none"
	AllProfiles Profile = "all"
	CPUProfile  Profile = "cpu"
	MemProfile  Profile = "mem"
)

func (Profile) MarshalJSON

func (p Profile) MarshalJSON() ([]byte, error)

func (Profile) String

func (p Profile) String() string

func (*Profile) UnmarshalJSON

func (p *Profile) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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