Documentation ¶
Index ¶
- Constants
- type Edge
- type Graph
- type GraphDrawer
- type GraphReport
- type Node
- type RemoteResolver
- type ReportLine
- type Reporter
- func (r *Reporter) Add(trace []uint64, count ...int64)
- func (r *Reporter) GraphByFunc(col int) Graph
- func (r *Reporter) ReportByFunc(column int) []ReportLine
- func (r *Reporter) ReportByPC() []ReportLine
- func (r *Reporter) SetExecutable(filename string) error
- func (r *Reporter) Symbols() (as []uint64)
- func (r *Reporter) Total(col int) (t int64)
- type Resolver
- type Stats
Constants ¶
View Source
const ( NODE_FRACTION = .005 EDGE_FRACTION = .001 )
View Source
const ( ColCPU = 0 ColLiveObj = 0 ColLiveBytes = 1 ColAllocObj = 2 ColAllocBytes = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphDrawer ¶
type GraphReport ¶
type GraphReport struct { Prog string Total int64 Unit string Graph Graph NodeFrac float64 EdgeFrac float64 }
func (*GraphReport) Edges ¶
func (g *GraphReport) Edges() (e []Edge)
func (*GraphReport) Nodes ¶
func (g *GraphReport) Nodes() (ns []Node)
type RemoteResolver ¶
func (*RemoteResolver) Prepare ¶
func (nr *RemoteResolver) Prepare(addrs []uint64) error
func (*RemoteResolver) Resolve ¶
func (nr *RemoteResolver) Resolve(addr uint64) string
type ReportLine ¶
type Reporter ¶
type Reporter struct { Resolver Resolver // contains filtered or unexported fields }
A Reporter is used to produce reports from profile data.
func (*Reporter) Add ¶
Add registers data for a given stack trace. There may be at most 4 count arguments, as needed in heap profiles.
func (*Reporter) GraphByFunc ¶
func (*Reporter) ReportByFunc ¶
func (r *Reporter) ReportByFunc(column int) []ReportLine
func (*Reporter) ReportByPC ¶
func (r *Reporter) ReportByPC() []ReportLine
func (*Reporter) SetExecutable ¶
Click to show internal directories.
Click to hide internal directories.