tools/metrics/histograms/split_xml.py
def _OutputToFolderAndXML(nodes, output_dir, key):
  """Creates new folder and XML file for separated histograms.

  Args:
    nodes: A list of histogram/variants nodes of a prefix.
    output_dir: The output directory.
    key: The prefix of the histograms, also the name of the new folder.
  """
  # Convert CamelCase name to snake_case when creating a directory.
  output_dir = os.path.join(output_dir, _CamelCaseToSnakeCase(key))
  if not os.path.exists(output_dir):
    os.makedirs(output_dir)
  _CreateXMLFile(key + ' histograms', 'histograms', nodes, output_dir,
                 'histograms.xml')
Creates new folder and XML file for separated histograms.

  Args:
    nodes: A list of histogram/variants nodes of a prefix.
    output_dir: The output directory.
    key: The prefix of the histograms, also the name of the new folder.
  
Creates new folder and XML file for separated histograms.
Creates new folder and XML file for separated histograms .
def _OutputToFolderAndXML(nodes, output_dir, key):
  output_dir = os.path.join(output_dir, _CamelCaseToSnakeCase(key))
  if not os.path.exists(output_dir):
    os.makedirs(output_dir)
  _CreateXMLFile(key + ' histograms', 'histograms', nodes, output_dir,
                 'histograms.xml')
def _OutputToFolderAndXML ( nodes , output_dir , key ) : output_dir = os . path . join ( output_dir , _CamelCaseToSnakeCase ( key ) ) if not os . path . exists ( output_dir ) : os . makedirs ( output_dir ) _CreateXMLFile ( key + ' histograms' , 'histograms' , nodes , output_dir , 'histograms.xml' )
Creates new folder and XML file for separated histograms.
Creates new folder and XML file for separated histograms .
"""Creates new folder and XML file for separated histograms.

  Args:
    nodes: A list of histogram/variants nodes of a prefix.
    output_dir: The output directory.
    key: The prefix of the histograms, also the name of the new folder.
  """ # Convert CamelCase name to snake_case when creating a directory.
nodes
A list of histogram/variants nodes of a prefix.
A list of histogram / variants nodes of a prefix .
output_dir
The output directory.
The output directory .
key
The prefix of the histograms, also the name of the new folder.
The prefix of the histograms also the name of the new folder .