Conditionally enable non-essential perf counters.

Resolves #279 (part 1).