Stop the stopwatch.
This method ends a new timing session, allowing the time to be retrieved.
304305306307308309310311312313314
} serializeToDisk(); } sw.stop(); log.info( "Cross reference scan done in "+sw ); WikiEventUtils.addWikiEventListener(m_engine.getPageManager(), WikiPageEvent.PAGE_DELETED, this); }
348349350351352353354355356357358
in.close(); m_unmutableReferredBy = Collections.unmodifiableMap( m_referredBy ); m_unmutableRefersTo = Collections.unmodifiableMap( m_refersTo ); sw.stop(); log.debug("Read serialized data successfully in "+sw); } finally { if( in != null ) in.close();
382383384385386387388389390391392
out.writeObject( m_refersTo ); out.writeObject( m_referredBy ); out.close(); sw.stop(); log.debug("serialization done - took "+sw); } catch( IOException e ) {
480481482483484485486487488489490
log.debug(" attr: "+key+"="+value); } in.close(); sw.stop(); log.debug("Read serialized data for "+name+" successfully in "+sw); p.setHasMetadata(); } catch( NoSuchAlgorithmException e ) {
566567568569570571572573574575576
{ log.fatal("No MD5 algorithm!?!"); } finally { sw.stop(); log.debug("serialization for "+p.getName()+" done - took "+sw); } }
15221523152415251526152715281529153015311532
} catch( FilterException e ) { // FIXME: Don't yet know what to do } sw.stop(); if( log.isDebugEnabled() ) log.debug("Page "+context.getRealPage().getName()+" rendered, took "+sw ); return result; }
16621663166416651666166716681669167016711672
if( runFilters && m_filterManager != null ) result = m_filterManager.doPostTranslateFiltering( context, result ); } sw.stop(); if( log.isDebugEnabled() ) log.debug("Page "+context.getRealPage().getName()+" rendered, took "+sw ); } catch( IOException e )
8182838485868788899091
String html = m_manager.getHTML( context, d ); assertNotNull( "noncached got null response",html); } sw.stop(); System.out.println(" Nocache took "+sw); long nocachetime = sw.getTime(); sw.reset();
101102103104105106107108109110111
String html = m_manager.getHTML( context, pagedata ); assertNotNull("cached got null response",html); } sw.stop(); System.out.println(" Cache took "+sw); long speedup = nocachetime / sw.getTime(); System.out.println(" Approx speedup: "+speedup+"x"); }
524525526527528529530531532533534
try { if (startKey.length > 0) { stopWatch.start(); table.get(get); stopWatch.stop(); sink.publishReadTiming(region, column, stopWatch.getTime()); } else { stopWatch.start(); rs = table.getScanner(scan); stopWatch.stop();