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 ¶
type LessFunc ¶
type LessFunc func(a, b *EventSummary) bool
type SubFrames ¶
func (SubFrames) MarshalJSON ¶
type SummaryCollection ¶
type SummaryCollection []*EventSummary
func (SummaryCollection) SortByType ¶
func (s SummaryCollection) SortByType(lang languages.Lang)
func (SummaryCollection) SortByValue ¶
func (s SummaryCollection) SortByValue()
Click to show internal directories.
Click to hide internal directories.