use of org.eclipse.linuxtools.internal.perf.model.PMStatEntry in project linuxtools by eclipse.
the class StatComparisonData method getComparisonStats.
/**
* Return a PMStatEntry array with the result of the comparison between the
* old and new stat data files
* @return
*/
public ArrayList<PMStatEntry> getComparisonStats() {
ArrayList<PMStatEntry> oldStats = collectStats(oldFile);
ArrayList<PMStatEntry> newStats = collectStats(newFile);
ArrayList<PMStatEntry> result = new ArrayList<>();
for (PMStatEntry oldEntry : oldStats) {
for (PMStatEntry newEntry : newStats) {
if (oldEntry.equalEvents(newEntry)) {
result.add(oldEntry.compare(newEntry));
continue;
}
}
}
return result;
}
Aggregations