Given a scenario where a system is experiencing performance issues, what steps would you take to diagnose and resolve the problem?