private void doFireProfile(Frame frame) { if (handlers != null) { for (ProfileHandler handler : this.handlers) { if (handler.shouldCaptureProfile(null)) { handler.fireProfile(frame); } } } }
/** * Should we even profile. * * @param args * @return */ private boolean shouldCaptureData(Object[] args) { if (handlers == null) { return false; } for (ProfileHandler handler : this.handlers) { if (handler.shouldCaptureProfile(args)) { return true; } } return false; }