public void beforeRequest (@Nonnull final IRequestWebScope aRequestScope) { m_aSW = StopWatch.createdStarted (); }
private static <T> T _timedSearch (@Nonnull final IThrowingSupplier <T, IOException> aRunnable, @Nonnull final Query aQuery) throws IOException { final StopWatch aSW = StopWatch.createdStarted (); try { return aRunnable.get (); } finally { final long nMillis = aSW.stopAndGetMillis (); s_aStatsQueryTimer.addTime (aQuery.toString (), nMillis); if (nMillis > CGlobal.MILLISECONDS_PER_SECOND) LOGGER.warn ("Lucene Query " + aQuery + " took too long: " + nMillis + "ms"); } }
public final void contextDestroyed (@Nonnull final ServletContextEvent aSCE) { final ServletContext aSC = aSCE.getServletContext (); final StopWatch aSW = StopWatch.createdStarted (); if (LOGGER.isInfoEnabled ()) LOGGER.info ("Servlet context '" + aSC.getServletContextName () + "' is being destroyed"); // Callback before global scope end beforeContextDestroyed (aSC); // Shutdown global scope and destroy all singletons WebScopeManager.onGlobalEnd (); // Callback after global scope end afterContextDestroyed (aSC); // Handle statistics if (isHandleStatisticsOnEnd ()) handleStatisticsOnEnd (); // Clean commons stuff etc PhotonBasic.shutdown (); if (isOnlyOneInstanceAllowed ()) { // De-init s_aInited.set (false); } if (LOGGER.isInfoEnabled ()) LOGGER.info ("Servlet context '" + aSC.getServletContextName () + "' was destroyed in " + aSW.stopAndGetMillis () + " milli seconds"); }
final StopWatch aSW = StopWatch.createdStarted (); final ThreadDescriptorList ret = new ThreadDescriptorList (); try
@Nonnull final Callable <T> aCallable) final StopWatch aSW = StopWatch.createdStarted (); final EntityTransaction aTransaction = aEntityMgr.getTransaction (); final boolean bTransactionRequired = !bAllowNestedTransactions || !aTransaction.isActive ();
final StopWatch aSW = StopWatch.createdStarted (); DataSource aMsgDataSource = null; try
final StopWatch aSW = StopWatch.createdStarted (); try final StopWatch aSW = StopWatch.createdStarted ();
final StopWatch aSW = StopWatch.createdStarted ();
final StopWatch aSW = StopWatch.createdStarted ();
final StopWatch aSW = StopWatch.createdStarted (); try
try final StopWatch aSW = StopWatch.createdStarted (); DocumentBuilder aDocumentBuilder; boolean bFromPool = false;
final StopWatch aSW = StopWatch.createdStarted (); try final StopWatch aSW = StopWatch.createdStarted ();
final StopWatch aSW = StopWatch.createdStarted ();
final StopWatch aSW = StopWatch.createdStarted ();
final StopWatch aSW = StopWatch.createdStarted (); final long nBytes = AS2IOHelper.copy (aMessageIS, aMsgOS);
final StopWatch aSW = StopWatch.createdStarted (); s_aStatsHdlExecute.increment (m_sFeedID);
final StopWatch aSW = StopWatch.createdStarted (); final long nBytes = ((AS2HttpClient) aConn).send (aMsgIS, eCTE, aOutgoingDumper); aSW.stop (); final StopWatch aSW = StopWatch.createdStarted ();
throw new IllegalStateException ("WebAppListener was already instantiated!"); final StopWatch aSW = StopWatch.createdStarted (); m_aInitializationStartDT = PDTFactory.getCurrentLocalDateTime ();
final StopWatch aSW = StopWatch.createdStarted ();
final StopWatch aSW = StopWatch.createdStarted (); try