Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNodeCostMap ¶
func GetNodeCostMap(traceData []ogcore.EventTrace) map[string]NodeCost
Types ¶
type NodeCost ¶
type NodeCost struct {
NodeName string
TotalCost time.Duration
SelfCost time.Duration
BeforeRunCost time.Duration
AfterRunCost time.Duration
}
func ListNodeCost ¶
func ListNodeCost(traceData []ogcore.EventTrace, limitN int) []NodeCost
type NodeCostList ¶
type NodeCostList []NodeCost
func (NodeCostList) Len ¶
func (a NodeCostList) Len() int
func (NodeCostList) Less ¶
func (a NodeCostList) Less(i, j int) bool
func (NodeCostList) Swap ¶
func (a NodeCostList) Swap(i, j int)
type Profiler ¶
type Profiler struct {
CostGraph *internal.Graph[SlowPathNode]
TraceData []ogcore.EventTrace
}
func NewProfiler ¶
func (*Profiler) GetSlowHint ¶
type SlowPathNode ¶
type SlowPathNode struct {
Name string
Cost time.Duration
CostSum time.Duration
Prev *SlowPathNode
}
func (*SlowPathNode) PrintPath ¶
func (n *SlowPathNode) PrintPath() string
Click to show internal directories.
Click to hide internal directories.