Lines Matching refs:prune
14 // Prune removes all nodes beneath a node matching dropRx, and not
17 func (p *Profile) Prune(dropRx, keepRx *regexp.Regexp) {
18 prune := make(map[uint64]bool)
39 // Found matching entry to prune.
44 // Matched the top entry: prune the whole location.
45 prune[loc.ID] = true
52 // Prune locs from each Sample
54 // Scan from the root to the leaves to find the prune location.
55 // Do not prune frames before the first user frame, to avoid
60 if !prune[id] && !pruneBeneath[id] {
67 if prune[id] {
94 p.Prune(drop, keep)