Scalable performance analysis method for SPMD applications