private static void exitWholeStack(ThreadProfiler ti,MethodGroup[] globalMethods_){
  int depth_=ti.depth;
  long t=System.nanoTime();
  while (depth_ > 0) {
    depth_--;
    long netTime=t - ti.startTimes[depth_];
    MethodGroup m=ti.stack[depth_];
    m.hits++;
    m.netTime+=netTime;
    if (depth_ > 0) {
      MethodGroup pm=ti.stack[depth_ - 1];
      pm.addChildTime(m,netTime);
    }
  }
}

private static void exitWholeStack ( ThreadProfiler ti , MethodGroup [ ] globalMethods_ ) { int depth_ = ti . depth ; long t = System . nanoTime ( ) ; while ( depth_ > 0 ) { depth_ -- ; long netTime = t - ti . startTimes [ depth_ ] ; MethodGroup m = ti . stack [ depth_ ] ; m . hits ++ ; m . netTime += netTime ; if ( depth_ > 0 ) { MethodGroup pm = ti . stack [ depth_ - 1 ] ; pm . addChildTime ( m , netTime ) ; } } }
simulates an exit ( ) in the whole call stack .
