flamegraph.py
def height(self):
        """Returns distance from current node to the most distant leaf node.

        If self is leaf node returns 1."""
        if len(self.child_samples) > 0:
            child_heights = [child.height() for child in self.child_samples]
            return max(child_heights) + 1
        else:
            return 1
Returns distance from current node to the most distant leaf node.

        If self is leaf node returns 1.
Returns distance from current node to the most distant leaf node.
If self is leaf node returns 1.
Returns distance from current node to the most distant leaf node . If self is leaf node returns 1 .
def height(self):
        if len(self.child_samples) > 0:
            child_heights = [child.height() for child in self.child_samples]
            return max(child_heights) + 1
        else:
            return 1
def height ( self ) : if len ( self . child_samples ) > 0 : child_heights = [ child . height ( ) for child in self . child_samples ] return max ( child_heights ) + 1 else : return 1
Returns distance from current node to the most distant leaf node.
Returns distance from current node to the most distant leaf node .
"""Returns distance from current node to the most distant leaf node.

        If self is leaf node returns 1."""
self