If you encountered performance issues in a production environment, how would you diagnose and resolve them?