Profiling for Production Optimization