PERFORMANCE_METRICS enabled

Fixed compiler errors when PERFORMANCE_METRICS is enabled.