コード例 #1
0
 private void doFireProfile(Frame frame) {
   if (handlers != null) {
     for (ProfileHandler handler : this.handlers) {
       if (handler.shouldCaptureProfile(null)) {
         handler.fireProfile(frame);
       }
     }
   }
 }
コード例 #2
0
 /**
  * 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;
 }