Home | History | Annotate | Download | only in histograms

Lines Matching refs:histograms

8 see histograms.xml; however, here is a simple example to get you started. The
9 XML below will generate the following five histograms:
19 <histograms>
30 </histograms>
158 filename: The path to the histograms XML file.
166 # Slurp in histograms.xml
175 histograms = {}
226 # Process the histograms. The descriptions can include HTML tags.
231 logging.error('Histograms %s and %s are not in alphabetical order'
235 if name in histograms:
239 histograms[name] = {}
244 histograms[name]['summary'] = JoinChildNodes(summary_nodes[0])
246 histograms[name]['summary'] = 'TBD'
252 histograms[name]['obsolete'] = reason
256 histograms[name]['units'] = histogram.getAttribute('units')
261 histograms[name]['details'] = JoinChildNodes(details_nodes[0])
270 histograms[name]['enum'] = enums[enum_name]
273 # histograms.
296 if not histogram_name in histograms:
322 logging.error('Affected histograms %s and %s of field trial %s are not '
327 base_description = histograms[histogram_name]
339 histograms[new_histogram_name] = copy.deepcopy(
340 histograms[histogram_name])
344 if not 'fieldtrial_groups' in histograms[new_histogram_name]:
345 histograms[new_histogram_name]['fieldtrial_groups'] = []
346 histograms[new_histogram_name]['fieldtrial_groups'].append(group_name)
348 if not 'fieldtrial_names' in histograms[new_histogram_name]:
349 histograms[new_histogram_name]['fieldtrial_names'] = []
350 histograms[new_histogram_name]['fieldtrial_names'].append(name)
352 if not 'fieldtrial_labels' in histograms[new_histogram_name]:
353 histograms[new_histogram_name]['fieldtrial_labels'] = []
354 histograms[new_histogram_name]['fieldtrial_labels'].append(
364 return histograms
367 def ExtractNames(histograms):
368 return sorted(histograms.keys())