Given a scenario where your application is experiencing performance issues, how would you diagnose the problem?