String name = snapshot.getThreadNameForId(threadId);
if (name.contains("AWT-EventQueue")) {
// skip AWT thread
continue;
}
CPUCCTContainer cont = snapshot.getContainerForThread(threadId, CPUResultsSnapshot.METHOD_LEVEL_VIEW);
PrestimeCPUCCTNode occurence = getMaxOccurence(cont.getRootNode(), mappedMethodName);
if (bestOccurence == null){
bestOccurence = occurence;
}else if (occurence != null){
bestOccurence = bestOccurence.getTotalTime0() > occurence.getTotalTime0() ? bestOccurence : occurence;
}