Documentation ¶
Index ¶
Constants ¶
View Source
const ( RootElementId int64 = 1 FieldSeparator string = "$" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClickhouseField ¶
type FlameGraphNode ¶
type FlameGraphNode struct { Id int64 `json:"-"` Cluster string `json:"-"` Name string `json:"name"` Total int64 `json:"total"` Value int64 `json:"value"` ModTime int64 `json:"mtime,omitempty"` RdTime int64 `json:"rdtime,omitempty"` ATime int64 `json:"atime,omitempty"` Count int64 `json:"count,omitempty"` Children []*FlameGraphNode `json:"children,omitempty"` ChildrenIds []int64 `json:"-"` Parent *FlameGraphNode `json:"-"` }
type StackFlameGraphNode ¶
type StackFlameGraphNode struct { Id int64 `json:"id"` Application string `json:"application"` Instance string `json:"instance"` FunctionName string `json:"name"` FileName string `json:"file"` Line int64 `json:"line"` Samples int64 `json:"samples"` MaxSamples int64 `json:"maxSamples"` Children []*StackFlameGraphNode `json:"children,omitempty"` ChildrenIds []int64 `json:"childrenIds"` Parent *StackFlameGraphNode `json:"-"` ParentID int64 `json:"parentId"` IsRoot uint8 `json:"isRoot"` FullName string `json:"fullName"` // contains filtered or unexported fields }
func NewStackFlamegraphTree ¶
func NewStackFlamegraphTree(name, instance, app string) *StackFlameGraphNode
func (*StackFlameGraphNode) FindOrAdd ¶
func (r *StackFlameGraphNode) FindOrAdd(funcName, fileName string, fileLine int64, fullName string, stackSamples int64) *StackFlameGraphNode
func (*StackFlameGraphNode) Increment ¶
func (r *StackFlameGraphNode) Increment(stackSamples int64)
Click to show internal directories.
Click to hide internal directories.