Automatic Analysis of Inefficiency Patterns in Parallel Applications