public List<MetricsRecordImpl> getRecords() {
        List<MetricsRecordImpl> records = new ArrayList<MetricsRecordImpl>(size());
        for (MetricsRecordBuilderImpl rb : this) {
            MetricsRecordImpl mr = rb.getRecord();
            if (mr != null) {
                records.add(mr);
            }
        }
        return records;
    }