A client is experiencing performance issues with their GenAI application. How would you diagnose and resolve this issue?