How do you analyze performance

Newbienewbster
New Contributor II

Curious to hear how you guys optimize compute. As in how you dig into the details of the Spark execution and improve?