/** * Decorates the invocation method with timing. */ @Override public final void invoke() { long t = System.nanoTime(); invokeTimed(t); t = System.nanoTime() - t; if(t > DEBUG_DURATION_LIMIT_NANOS) { LOG.log( t > WARN_DURATION_LIMIT_NANOS ? Level.WARNING : Level.FINE, "Fiber \"" + this + "\" invocation duration (" + TimeUnit.NANOSECONDS.toMillis(t) + "[ms]) exceeds " + "the limit (" + TimeUnit.NANOSECONDS.toMillis(SOFT_DURATION_LIMIT_NANOS) + "[ms])" ); } }
@Override protected final void doStop() throws IllegalStateException { super.doStop(); Loggers.MSG.debug( "{}: generated {}, recycled {}, output {} operations", LoadGeneratorImpl.this.toString(), builtTasksCounter.sum(), recycledOpCounter.sum(), outputOpCounter.sum()); }