tools/perf/page_sets/press_story.py
def AddMeasurement(self, name, unit, samples, description=None):
    """Record an ad-hoc measurement.

    Args:
      name: A string with the name of the measurement (e.g. 'score', 'runtime',
        etc).
      unit: A string specifying the unit used for measurements (e.g. 'ms',
        'count', etc).
      samples: Either a single numeric value or a list of numeric values to
        record as part of this measurement.
      description: An optional string with a short human readable description
        of the measurement.
    """
    # TODO(crbug.com/999484): Ideally, these should be recorded directly into
    # the results object, rather than held on this temporary list. That needs,
    # however, another slight refactor to make the results object available at
    # this point.
    self._measurements.append({'name': name, 'unit': unit, 'samples': samples,
                               'description': description})
Record an ad-hoc measurement.

    Args:
      name: A string with the name of the measurement (e.g. 'score', 'runtime',
        etc).
      unit: A string specifying the unit used for measurements (e.g. 'ms',
        'count', etc).
      samples: Either a single numeric value or a list of numeric values to
        record as part of this measurement.
      description: An optional string with a short human readable description
        of the measurement.
    
Record an ad-hoc measurement.
Record an ad - hoc measurement .
def AddMeasurement(self, name, unit, samples, description=None):
    self._measurements.append({'name': name, 'unit': unit, 'samples': samples,
                               'description': description})
def AddMeasurement ( self , name , unit , samples , description = None ) : self . _measurements . append ( { 'name' : name , 'unit' : unit , 'samples' : samples , 'description' : description } )
Record an ad-hoc measurement.
Record an ad - hoc measurement .
"""Record an ad-hoc measurement.

    Args:
      name: A string with the name of the measurement (e.g. 'score', 'runtime',
        etc).
      unit: A string specifying the unit used for measurements (e.g. 'ms',
        'count', etc).
      samples: Either a single numeric value or a list of numeric values to
        record as part of this measurement.
      description: An optional string with a short human readable description
        of the measurement.
    """ # TODO(crbug.com/999484): Ideally, these should be recorded directly into # the results object, rather than held on this temporary list. That needs, # however, another slight refactor to make the results object available at # this point.
self
name
A string with the name of the measurement .
A string with the name of the measurement .
unit
A string specifying the unit used for measurements .
A string specifying the unit used for measurements .
samples
Either a single numeric value or a list of numeric values to
record as part of this measurement.
Either a single numeric value or a list of numeric values to record as part of this measurement .
description
An optional string with a short human readable description
of the measurement.
An optional string with a short human readable description of the measurement .