Allow disabling "heavy" measurements at compile.