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