coreRuntime/src/sc/util/PerfMon.java
public static void resume(String name) {
      if (!enabled)
         return;
      ArrayList<PerfOp> current = currentOp.get();
      int top = current == null ? -1 : current.size() - 1;
      if (top == -1) {
         perfMonError("Invalid resume call for: " + name + ": no current op");
         return;
      }

      for (int i = top; i >= 0; i--) {
         PerfOp currentOp = current.get(i);
         if (name == null || currentOp.name.equals(name)) {
            currentOp.resume(current, i, System.nanoTime());
            return; // success
         }
      }
      perfMonError("*** resume call for: " + name + " not in the current thread's call stack");
   }
/** Resumes after a yield - often called with null to resume the previous including operation. */
Resumes after a yield - often called with null to resume the previous including operation.
Resumes after a yield - often called with null to resume the previous including operation .
public static void resume(String name) {
      if (!enabled)
         return;
      ArrayList<PerfOp> current = currentOp.get();
      int top = current == null ? -1 : current.size() - 1;
      if (top == -1) {
         perfMonError("Invalid resume call for: " + name + ": no current op");
         return;
      }
      for (int i = top; i >= 0; i--) {
         PerfOp currentOp = current.get(i);
         if (name == null || currentOp.name.equals(name)) {
            currentOp.resume(current, i, System.nanoTime());
            return; 
         }
      }
      perfMonError("*** resume call for: " + name + " not in the current thread's call stack");
   }
public static void resume ( String name ) { if ( ! enabled ) return ; ArrayList < PerfOp > current = currentOp . get ( ) ; int top = current == null ? - 1 : current . size ( ) - 1 ; if ( top == - 1 ) { perfMonError ( "Invalid resume call for: " + name + ": no current op" ) ; return ; } for ( int i = top ; i >= 0 ; i -- ) { PerfOp currentOp = current . get ( i ) ; if ( name == null || currentOp . name . equals ( name ) ) { currentOp . resume ( current , i , System . nanoTime ( ) ) ; return ; } } perfMonError ( "*** resume call for: " + name + " not in the current thread's call stack" ) ; }
Resumes after a yield - often called with null to resume the previous including operation.
Resumes after a yield - often called with null to resume the previous including operation .
// success