def Record(self, value, fields=None):
    """Records given value."""
    key = self._FieldsToKey(fields)

    try:
      entry = self._values[key]
    except __HOLE__:
      entry = Distribution(bins=self._bins)
      self._values[key] = entry

    entry.Record(value)
dataset/ETHPy150Open google/grr/grr/lib/stats.py/_EventMetric.Record