Trace-based Performance Analysis for the Petascale Simulation Code FLASH