|
69 | 69 | import edu.umd.cs.findbugs.detect.NoteSuppressedWarnings;
|
70 | 70 | import edu.umd.cs.findbugs.filter.FilterException;
|
71 | 71 | import edu.umd.cs.findbugs.log.Profiler;
|
72 |
| -import edu.umd.cs.findbugs.log.YourKitController; |
73 | 72 | import edu.umd.cs.findbugs.plan.AnalysisPass;
|
74 | 73 | import edu.umd.cs.findbugs.plan.ExecutionPlan;
|
75 | 74 | import edu.umd.cs.findbugs.plan.OrderingConstraintException;
|
@@ -118,8 +117,6 @@ public class FindBugs2 implements IFindBugsEngine {
|
118 | 117 |
|
119 | 118 | private ExecutionPlan executionPlan;
|
120 | 119 |
|
121 |
| - private final YourKitController yourkitController = new YourKitController(); |
122 |
| - |
123 | 120 | private String currentClassName;
|
124 | 121 |
|
125 | 122 | private FindBugsProgress progress;
|
@@ -986,7 +983,6 @@ private void analyzeApplication() throws InterruptedException {
|
986 | 983 | bugReporter.getProjectStats().setReferencedClasses(referencedClassSet.size());
|
987 | 984 | for (Iterator<AnalysisPass> passIterator = executionPlan.passIterator(); passIterator.hasNext();) {
|
988 | 985 | AnalysisPass pass = passIterator.next();
|
989 |
| - yourkitController.advanceGeneration("Pass " + passCount); |
990 | 986 | // The first pass is generally a non-reporting pass which
|
991 | 987 | // gathers information about referenced classes.
|
992 | 988 | boolean isNonReportingFirstPass = multiplePasses && passCount == 0;
|
@@ -1047,10 +1043,6 @@ public Collection<ClassDescriptor> getOutEdges(ClassDescriptor e) {
|
1047 | 1043 | classCollection.size(), classDescriptor);
|
1048 | 1044 | }
|
1049 | 1045 | count++;
|
1050 |
| - if (!isNonReportingFirstPass && count % 1000 == 0) { |
1051 |
| - yourkitController.advanceGeneration(String.format("Pass %d.%02d", passCount, count/1000)); |
1052 |
| - } |
1053 |
| - |
1054 | 1046 |
|
1055 | 1047 | // Check to see if class is excluded by the class screener.
|
1056 | 1048 | // In general, we do not want to screen classes from the
|
@@ -1121,9 +1113,6 @@ public Collection<ClassDescriptor> getOutEdges(ClassDescriptor e) {
|
1121 | 1113 | }
|
1122 | 1114 | }
|
1123 | 1115 |
|
1124 |
| - if (!passIterator.hasNext()) { |
1125 |
| - yourkitController.captureMemorySnapshot(); |
1126 |
| - } |
1127 | 1116 | // Call finishPass on each detector
|
1128 | 1117 | for (Detector2 detector : detectorList) {
|
1129 | 1118 | detector.finishPass();
|
|
0 commit comments