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

Method SelectTopNodes

internal/graph/graph.go:851–853  ·  view source on GitHub ↗

SelectTopNodes returns a set of the top maxNodes nodes in a graph.

(maxNodes int, visualMode bool)

Source from the content-addressed store, hash-verified

849
850// SelectTopNodes returns a set of the top maxNodes nodes in a graph.
851func (g *Graph) SelectTopNodes(maxNodes int, visualMode bool) NodeSet {
852 return makeNodeSet(g.selectTopNodes(maxNodes, visualMode), 0)
853}
854
855// selectTopNodes returns a slice of the top maxNodes nodes in a graph.
856func (g *Graph) selectTopNodes(maxNodes int, visualMode bool) Nodes {

Callers 2

TestNodeletCountCappingFunction · 0.95
newTrimmedGraphMethod · 0.80

Calls 2

selectTopNodesMethod · 0.95
makeNodeSetFunction · 0.85

Tested by 1

TestNodeletCountCappingFunction · 0.76