From a635f9fc85d86c714ddfa860cfc96c180083671c Mon Sep 17 00:00:00 2001 From: Jeff Wallace Date: Wed, 4 Dec 2013 13:33:10 -0500 Subject: [PATCH] Removed stopwatch and debug printlns. Conflicts: Core/src/org/sleuthkit/autopsy/report/ReportGenerator.java --- .../sleuthkit/autopsy/report/ReportGenerator.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/report/ReportGenerator.java b/Core/src/org/sleuthkit/autopsy/report/ReportGenerator.java index 55c8fddcaa..ffcfde33cb 100644 --- a/Core/src/org/sleuthkit/autopsy/report/ReportGenerator.java +++ b/Core/src/org/sleuthkit/autopsy/report/ReportGenerator.java @@ -420,12 +420,7 @@ public class ReportGenerator { continue; } - StopWatch stopwatch = new StopWatch(); - stopwatch.start(); List unsortedArtifacts = getFilteredArtifacts(type, tagNamesFilter); - stopwatch.stop(); - System.out.println("Number of Artifacts:\t" + unsortedArtifacts.size()); - System.out.println("getFilteredArtifacts:\t" + stopwatch.getElapsedTime()); if (unsortedArtifacts.isEmpty()) { continue; @@ -434,11 +429,7 @@ public class ReportGenerator { // The most efficient way to sort all the Artifacts is to add them to a List, and then // sort that List based off a Comparator. Adding to a TreeMap/Set/List sorts the list // each time an element is added, which adds unnecessary overhead if we only need it sorted once. - stopwatch.reset(); - stopwatch.start(); Collections.sort(unsortedArtifacts); - stopwatch.stop(); - System.out.println("Collections.sort:\t" + stopwatch.getElapsedTime()); // Get the column headers appropriate for the artifact type. /* @@@ BC: Seems like a better design here would be to have a method that @@ -458,8 +449,6 @@ public class ReportGenerator { module.startTable(columnHeaders); } - stopwatch.reset(); - stopwatch.start(); boolean msgSent = false; for(ArtifactData artifactData : unsortedArtifacts) { // Add the row data to all of the reports. @@ -478,7 +467,7 @@ public class ReportGenerator { module.addRow(rowData); } } - + // Finish up this data type for (TableReportModule module : tableModules) { tableProgress.get(module).increment();