tools/metrics/histograms/expand_owners.py
def _AddHistogramComponent(histogram, component):
  """Makes a DOM Element for the component and adds it to the given histogram.

  Args:
    histogram: The DOM Element to update.
    component: A string component to add, e.g. 'Internals>Network' or 'Build'.
  """
  node_to_insert_before = histogram.lastChild
  _AddTextNodeWithNewLineAndIndent(histogram, node_to_insert_before)

  document = histogram.ownerDocument
  component_element = document.createElement('component')
  component_element.appendChild(document.createTextNode(component))
  histogram.insertBefore(component_element, node_to_insert_before)
Makes a DOM Element for the component and adds it to the given histogram.

  Args:
    histogram: The DOM Element to update.
    component: A string component to add, e.g. 'Internals>Network' or 'Build'.
  
Makes a DOM Element for the component and adds it to the given histogram.
Makes a DOM Element for the component and adds it to the given histogram .
def _AddHistogramComponent(histogram, component):
  node_to_insert_before = histogram.lastChild
  _AddTextNodeWithNewLineAndIndent(histogram, node_to_insert_before)
  document = histogram.ownerDocument
  component_element = document.createElement('component')
  component_element.appendChild(document.createTextNode(component))
  histogram.insertBefore(component_element, node_to_insert_before)
def _AddHistogramComponent ( histogram , component ) : node_to_insert_before = histogram . lastChild _AddTextNodeWithNewLineAndIndent ( histogram , node_to_insert_before ) document = histogram . ownerDocument component_element = document . createElement ( 'component' ) component_element . appendChild ( document . createTextNode ( component ) ) histogram . insertBefore ( component_element , node_to_insert_before )
Makes a DOM Element for the component and adds it to the given histogram.
Makes a DOM Element for the component and adds it to the given histogram .
"""Makes a DOM Element for the component and adds it to the given histogram.

  Args:
    histogram: The DOM Element to update.
    component: A string component to add, e.g. 'Internals>Network' or 'Build'.
  """
histogram
The DOM Element to update.
The DOM Element to update .
component
A string component to add, e.g. 'Internals>Network' or 'Build'.
A string component to add e . g . ' Internals > Network ' or ' Build ' .