// all: if true, snapshot unchanged metrics as well void MutableMetric::snapshot(MetricsRecordBuilder& builder, bool all) { if (all || this->changed()) { snapshotImpl(builder); this->clearChanged(); } }
void snapshot(const AbstractGrid* grid, const int step) { if (step % stepsPerSnap == 0) { snapshotImpl(grid, step); } }