@Test public void testReset() throws Throwable { Profiler profiler = new Profiler(); profiler.reset(); assertEquals(0, profiler.events.size(), "profiler.events.size()"); }
public void reset() { start = partial = System.nanoTime(); events = new LinkedHashMap<>(); }
Profiler implements Loggeable { public void reset() { start = partial = System.nanoTime(); events = new LinkedHashMap<>(); } }
Profiler implements Loggeable { public void reset() { start = partial = System.nanoTime(); events = new LinkedHashMap<>(); } Profiler(); }
Profiler implements Loggeable { public void reset() { start = partial = System.nanoTime(); events = new LinkedHashMap<>(); } Profiler(); void reset(); @SuppressWarnings("unchecked") synchronized void checkPoint(String detail); long getElapsed(); long getElapsedInMillis(); long getPartial(); long getPartialInMillis(); void dump(PrintStream p, String indent); LinkedHashMap<String, Entry> getEvents(); Entry getEntry(String eventName); void reenable(); }
Profiler implements Loggeable { public void reset() { start = partial = System.nanoTime(); events = new LinkedHashMap<>(); } Profiler(); void reset(); @SuppressWarnings("unchecked") synchronized void checkPoint(String detail); long getElapsed(); long getElapsedInMillis(); long getPartial(); long getPartialInMillis(); void dump(PrintStream p, String indent); LinkedHashMap<String, Entry> getEvents(); Entry getEntry(String eventName); void reenable(); static final int TO_MILLIS; }