Added debug performance monitoring