/** * Remove an existing tracker from the manager * * @param tracker * @since 5.0 */ public void removeTracker(PerformanceTracker tracker) { trackers.remove(tracker.getID()); }
/** * Add an existing tracker to the manager * * @param tracker * @since 5.0 */ public void addTracker(PerformanceTracker tracker) { trackers.put(tracker.getID(), tracker); }
/** * @param trackerID * @param methodID * @since 5.0 */ public void stop(String trackerID, String methodID) { PerformanceTracker tracker = getTracker(trackerID); if (tracker != null) { tracker.start(methodID); } }
/** * @param trackerID * @since 5.0 */ public void print(String trackerID) { PerformanceTracker tracker = getTracker(trackerID); if (tracker != null) { tracker.print(); } }
public void resetAll() { for (Iterator iter = trackers.values().iterator(); iter.hasNext(); ) { PerformanceTracker tracker = (PerformanceTracker) iter.next(); tracker.reset(); } }