pprof

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldQuantity     = "quantity"
	FieldValue        = "value"
	FieldUnit         = "unit"
	FieldPercent      = "percent"
	FieldFunctionName = "functionName"
	FieldLine         = "line"
	FieldFile         = "file"
	FieldDirectory    = "directory"
	FieldThreadID     = "threadID"
	FieldThreadName   = "threadName"
	FieldClass        = "class"
	FieldNamespace    = "namespace"
	FieldAssembly     = "assembly"
	FieldPackage      = "package"
	FieldPrintString  = "printString"
	FieldSubFrames    = "subFrames"
)

Variables

This section is empty.

Functions

func GetFrameJSONFields

func GetFrameJSONFields() []string

Types

type CollectionSort

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

func (*CollectionSort) Len

func (c *CollectionSort) Len() int

func (*CollectionSort) Less

func (c *CollectionSort) Less(i, j int) bool

func (*CollectionSort) Swap

func (c *CollectionSort) Swap(i, j int)

type EventSummary

type EventSummary struct {
	*SummaryValueType
	Value int64 `json:"value"`
}

func (*EventSummary) ConvertToDefaultUnit

func (es *EventSummary) ConvertToDefaultUnit()

type Frame

type Frame struct {
	Quantity    *quantity.Quantity `json:"quantity"`
	Value       int64              `json:"value"`
	Unit        *quantity.Unit     `json:"unit"`
	Percent     string             `json:"percent"`
	Function    string             `json:"functionName"`
	Line        int64              `json:"line,omitempty"`
	File        string             `json:"file,omitempty"`
	Directory   string             `json:"directory,omitempty"`
	ThreadID    string             `json:"threadID"`
	ThreadName  string             `json:"threadName"`
	Class       string             `json:"class,omitempty"`
	Namespace   string             `json:"namespace,omitempty"`
	Assembly    string             `json:"assembly,omitempty"`
	Package     string             `json:"package,omitempty"`
	PrintString string             `json:"printString"`
	SubFrames   SubFrames          `json:"subFrames"`
}

func (*Frame) MarshalJSON

func (f *Frame) MarshalJSON() ([]byte, error)

type LessFunc

type LessFunc func(a, b *EventSummary) bool

type SubFrames

type SubFrames map[string]*Frame

func (SubFrames) MarshalJSON

func (sf SubFrames) MarshalJSON() ([]byte, error)

type SummaryCollection

type SummaryCollection []*EventSummary

func (SummaryCollection) SortByType

func (s SummaryCollection) SortByType(lang languages.Lang)

func (SummaryCollection) SortByValue

func (s SummaryCollection) SortByValue()

type SummaryValueType

type SummaryValueType struct {
	Type events.Type    `json:"type"`
	Unit *quantity.Unit `json:"unit"`
}

Jump to

Keyboard shortcuts

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