parameters: (self, runnable, duration)
docstring: Records a duration of a specific run of the runnable.
docstring_summary: Records a duration of a specific run of the runnable.
docstring_tokens: Records a duration of a specific run of the runnable .
function: def AddRunnableDuration(self, runnable, duration):
      """Records a duration of a specific run of the runnable."""
      if runnable.name not in self.runnables:
        self.runnables[runnable.name] = {
          'graphs': runnable.graphs,
          'durations': [duration],
          'timeout': runnable.timeout,
        }
      else:
        existing_entry = self.runnables[runnable.name]
        assert runnable.timeout == existing_entry['timeout']
        assert runnable.graphs == existing_entry['graphs']
        existing_entry['durations'].append(duration)
function_tokens: def AddRunnableDuration ( self , runnable , duration ) : if runnable . name not in self . runnables : self . runnables [ runnable . name ] = { 'graphs' : runnable . graphs , 'durations' : [ duration ] , 'timeout' : runnable . timeout , } else : existing_entry = self . runnables [ runnable . name ] assert runnable . timeout == existing_entry [ 'timeout' ] assert runnable . graphs == existing_entry [ 'graphs' ] existing_entry [ 'durations' ] . append ( duration )