/** * obtain miss elapsed time for a specific key in specified time units * * @param key * timer key * @param tunit * time unit * @return miss count for a specific key */ public long getMissAge(String key, TimeUnit tunit) { TimeStats last = EVENT_MAP.get(key); return last != null ? last.getMissAge(tunit): 0; }
@Override public DumpCollection getDump() { Dump dump = new Dump(getCategoryName() + "-Table", this); for (Entry<String, TimeStats> entry : timeTracker.getTimeStats().entrySet()) { dump.add( entry.getKey(), "h(" + entry.getValue().getHitCount() + "-" + entry.getValue().getHitAge(TimeUnit.MILLISECONDS) + ")" + "m(" + entry.getValue().getMissCount() + "-" + entry.getValue().getMissAge(TimeUnit.MILLISECONDS) + ")"); } return dump; } }