MCPcopy Create free account
hub / github.com/google/pprof / New

Function New

internal/graph/graph.go:330–336  ·  view source on GitHub ↗

New summarizes performance data from a profile into a graph.

(prof *profile.Profile, o *Options)

Source from the content-addressed store, hash-verified

328
329// New summarizes performance data from a profile into a graph.
330func New(prof *profile.Profile, o *Options) *Graph {
331 if o.CallTree {
332 return newTree(prof, o)
333 }
334 g, _ := newGraph(prof, o)
335 return g
336}
337
338// newGraph computes a graph from a profile. It returns the graph, and
339// a map from the profile location indices to the corresponding graph

Callers 1

newGraphMethod · 0.92

Calls 2

newTreeFunction · 0.85
newGraphFunction · 0.85

Tested by

no test coverage detected