Author: toad
Date: 2008-08-19 12:22:17 +0000 (Tue, 19 Aug 2008)
New Revision: 22024
Modified:
branches/db4o/freenet/src/freenet/support/PrioritizedSerialExecutor.java
Log:
Nextgens' profiling suggests the job-totals code causes a significant amount of
object churn. Turn it off unless logMINOR.
Modified:
branches/db4o/freenet/src/freenet/support/PrioritizedSerialExecutor.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/PrioritizedSerialExecutor.java
2008-08-19 02:14:14 UTC (rev 22023)
+++ branches/db4o/freenet/src/freenet/support/PrioritizedSerialExecutor.java
2008-08-19 12:22:17 UTC (rev 22024)
@@ -62,7 +62,7 @@
long start = System.currentTimeMillis();
job.run();
long end = System.currentTimeMillis();
- if(Logger.shouldLog(Logger.MINOR, this))
+ if(Logger.shouldLog(Logger.MINOR,
this)) {
Logger.minor(this, "Job "+job+"
took "+(end-start)+"ms");
synchronized(timeByJobClasses) {
String name = job.toString();
@@ -87,6 +87,7 @@
}
}
}
+ }
} catch (Throwable t) {
Logger.error(this, "Caught "+t, t);
Logger.error(this, "While running
"+job+" on "+this);