tools/metrics/histograms/histogram_paths.py
def _FindHistogramsXmlFiles():
  """Gets a list relative path to all histograms xmls under metadata/."""
  files = []
  for dir_name, _, file_list in os.walk(PATH_TO_METADATA_DIR):
    for filename in file_list:
      if (filename == 'histograms.xml'
          or filename == 'histogram_suffixes_list.xml'):
        # Compute the relative path of the histograms xml file.
        file_path = os.path.relpath(os.path.join(dir_name, filename),
                                    PATH_TO_METADATA_DIR)
        files.append(
            os.path.join('tools/metrics/histograms/metadata',
                         file_path).replace(os.sep, '/').lower())
  return sorted(files)
Gets a list relative path to all histograms xmls under metadata/.
Gets a list relative path to all histograms xmls under metadata/.
Gets a list relative path to all histograms xmls under metadata / .
def _FindHistogramsXmlFiles():
  files = []
  for dir_name, _, file_list in os.walk(PATH_TO_METADATA_DIR):
    for filename in file_list:
      if (filename == 'histograms.xml'
          or filename == 'histogram_suffixes_list.xml'):
        file_path = os.path.relpath(os.path.join(dir_name, filename),
                                    PATH_TO_METADATA_DIR)
        files.append(
            os.path.join('tools/metrics/histograms/metadata',
                         file_path).replace(os.sep, '/').lower())
  return sorted(files)
def _FindHistogramsXmlFiles ( ) : files = [ ] for dir_name , _ , file_list in os . walk ( PATH_TO_METADATA_DIR ) : for filename in file_list : if ( filename == 'histograms.xml' or filename == 'histogram_suffixes_list.xml' ) : file_path = os . path . relpath ( os . path . join ( dir_name , filename ) , PATH_TO_METADATA_DIR ) files . append ( os . path . join ( 'tools/metrics/histograms/metadata' , file_path ) . replace ( os . sep , '/' ) . lower ( ) ) return sorted ( files )
Gets a list relative path to all histograms xmls under metadata/.
Gets a list relative path to all histograms xmls under metadata / .
"""Gets a list relative path to all histograms xmls under metadata/.""" # Compute the relative path of the histograms xml file.