/** Start timing an item. **/ public void beginItem() { beginItem("No Description"); }
/** Stop timing of the latest item */ public static void endItem() { profiler.endItem(); }
/** Reset the global ProfilerImpl instance. **/ public static void reset() { profiler.reset(); }
/** Simple unit test **/ public static void main(String[] notUsed) { ProfilerImpl p = new ProfilerImpl(); try { p.beginItem("first item"); Thread.sleep(3000); p.beginItem("second item here dude whoa yowser yowser"); Thread.sleep(1500); p.endItem(); p.endItem(); System.out.println("" + p); } catch (Exception e) { } } }
/** * @param notUsed */ public static void main(String[] notUsed) { try { profiler.beginItem("first item"); Thread.sleep(3000); profiler.beginItem("second item here dude whoa yowser yowser"); Thread.sleep(1500); profiler.endItem(); profiler.endItem(); System.out.println("" + profiler); } catch (Exception e) { } } static ProfilerImpl profiler = new ProfilerImpl();
/** return a String report of all the timings * @return */ public static String report() { return profiler.toString(); }
/** Stop timing an item and store the information. **/ public void endItem() { ++numEnds; Item item = getLastNotEnded(); if (item != null) { item.end(); } ++numActualEnds; }
/** Simple unit test **/ public static void main(String[] notUsed) { ProfilerImpl p = new ProfilerImpl(); try { p.beginItem("first item"); Thread.sleep(3000); p.beginItem("second item here dude whoa yowser yowser"); Thread.sleep(1500); p.endItem(); p.endItem(); System.out.println("" + p); } catch (Exception e) { } } }
/** * @param notUsed */ public static void main(String[] notUsed) { try { profiler.beginItem("first item"); Thread.sleep(3000); profiler.beginItem("second item here dude whoa yowser yowser"); Thread.sleep(1500); profiler.endItem(); profiler.endItem(); System.out.println("" + profiler); } catch (Exception e) { } } static ProfilerImpl profiler = new ProfilerImpl();
/** return a String report of all the timings * @return */ public static String report() { return profiler.toString(); }
/** Stop timing an item and store the information. **/ public void endItem() { ++numEnds; Item item = getLastNotEnded(); if (item != null) { item.end(); } ++numActualEnds; }
/** Simple unit test **/ public static void main(String[] notUsed) { ProfilerImpl p = new ProfilerImpl(); try { p.beginItem("first item"); Thread.sleep(3000); p.beginItem("second item here dude whoa yowser yowser"); Thread.sleep(1500); p.endItem(); p.endItem(); System.out.println("" + p); } catch (Exception e) { } } }
/** * @param notUsed */ public static void main(String[] notUsed) { try { profiler.beginItem("first item"); Thread.sleep(3000); profiler.beginItem("second item here dude whoa yowser yowser"); Thread.sleep(1500); profiler.endItem(); profiler.endItem(); System.out.println("" + profiler); } catch (Exception e) { } } static ProfilerImpl profiler = new ProfilerImpl();
/** Start timing an item. **/ public static void beginItem() { profiler.beginItem(); }
/** return a String report of all the timings * @return */ public static String report() { return profiler.toString(); }
/** Stop timing an item and store the information. **/ public void endItem() { ++numEnds; Item item = getLastNotEnded(); if (item != null) { item.end(); } ++numActualEnds; }
/** Reset the global ProfilerImpl instance. **/ public static void reset() { profiler.reset(); }
/** Stop timing of the latest item */ public static void endItem() { profiler.endItem(); }
/** Start timing an item. **/ public static void beginItem() { profiler.beginItem(); }
/** Reset the global ProfilerImpl instance. **/ public static void reset() { profiler.reset(); }