tools/metrics/histograms/pretty_print.py
def PrettyPrintHistogramsTree(tree):
  """Pretty-print the given ElementTree element.

  Args:
    tree: The ElementTree element.

  Returns:
    The pretty-printed version as an XML string.
  """
  # Prevent accidentally adding enums to histograms.xml
  DropNodesByTagName(tree, 'enums')
  FixMisplacedHistogramsAndHistogramSuffixes(tree)
  canonicalizeUnits(tree)
  fixObsoleteOrder(tree)
  return histogram_configuration_model.PrettifyTree(tree)
Pretty-print the given ElementTree element.

  Args:
    tree: The ElementTree element.

  Returns:
    The pretty-printed version as an XML string.
  
Pretty-print the given ElementTree element.
Pretty - print the given ElementTree element .
def PrettyPrintHistogramsTree(tree):
  DropNodesByTagName(tree, 'enums')
  FixMisplacedHistogramsAndHistogramSuffixes(tree)
  canonicalizeUnits(tree)
  fixObsoleteOrder(tree)
  return histogram_configuration_model.PrettifyTree(tree)
def PrettyPrintHistogramsTree ( tree ) : DropNodesByTagName ( tree , 'enums' ) FixMisplacedHistogramsAndHistogramSuffixes ( tree ) canonicalizeUnits ( tree ) fixObsoleteOrder ( tree ) return histogram_configuration_model . PrettifyTree ( tree )
Pretty-print the given ElementTree element.
Pretty - print the given ElementTree element .
"""Pretty-print the given ElementTree element.

  Args:
    tree: The ElementTree element.

  Returns:
    The pretty-printed version as an XML string.
  """ # Prevent accidentally adding enums to histograms.xml
The pretty-printed version as an XML string.
The pretty - printed version as an XML string .
tree
The ElementTree element.
The ElementTree element .