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

Function makeNodeSet

internal/graph/graph.go:767–774  ·  view source on GitHub ↗
(nodes Nodes, nodeCutoff int64)

Source from the content-addressed store, hash-verified

765}
766
767func makeNodeSet(nodes Nodes, nodeCutoff int64) NodeSet {
768 cutNodes := getNodesAboveCumCutoff(nodes, nodeCutoff)
769 kept := make(NodeSet, len(cutNodes))
770 for _, n := range cutNodes {
771 kept[n.Info] = true
772 }
773 return kept
774}
775
776// getNodesAboveCumCutoff returns all the nodes which have a Cum value greater
777// than or equal to cutoff.

Callers 2

SelectTopNodesMethod · 0.85

Calls 1

getNodesAboveCumCutoffFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…