Home | History | Annotate | Download | only in third_party

Lines Matching refs:sibling

217   # Try to reduce misplaced stack leaves by moving them up into sibling nodes.
223 # If parent's sibling has same node name, has no children and small weight,
224 # transplant sibling's samples into the current node.
225 for sibling in parent_siblings:
226 if sibling.name == node.name and \
227 len(sibling.children) == 0 and \
228 sibling.GetTotalWeight() <= node.GetTotalWeight() * 0.15:
230 # Transplant samples from sibling to current node.
231 for samp in sibling.samples:
234 sibling.samples = []