Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TrimTree (0.09 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    			return strings.Join(matches[1:], "")
    		}
    	}
    	return f
    }
    
    // TrimTree trims a Graph in forest form, keeping only the nodes in kept. This
    // will not work correctly if even a single node has multiple parents.
    func (g *Graph) TrimTree(kept NodePtrSet) {
    	// Creates a new list of nodes
    	oldNodes := g.Nodes
    	g.Nodes = make(Nodes, 0, len(kept))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    	if nodeCutoff > 0 {
    		if callTree {
    			if nodesKept := g.DiscardLowFrequencyNodePtrs(nodeCutoff); len(g.Nodes) != len(nodesKept) {
    				droppedNodes = len(g.Nodes) - len(nodesKept)
    				g.TrimTree(nodesKept)
    			}
    		} else {
    			if nodesKept := g.DiscardLowFrequencyNodes(nodeCutoff); len(g.Nodes) != len(nodesKept) {
    				droppedNodes = len(g.Nodes) - len(nodesKept)
    				g = rpt.newGraph(nodesKept)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
Back to top