code: public void record(String metric, double value) {
      mTimeSeries.compute(metric, (metricName, timeSeries) -> {
        if (timeSeries == null) {
          timeSeries = new TimeSeries(metricName);
        }
        timeSeries.record(value);
        return timeSeries;
      });
    }
docs: Records a value for the given metric at the current time.
  
  @param metric the name of the metric
  @param value the value of the metric