collectMetric property

bool collectMetric
getter/setter pair

Allow collecting metrics

Implementation

bool collectMetric = false;