public static void resetStats(){
synchronized (globalLock) {
    for (    MethodGroup m : globalMethods) {
      if (m == null) {
        break;
      }
      m.selfTime=0;
      m.netTime=0;
      m.childRecursiveTime=0;
      m.hits=0;
      for (int i=0; i < m.childCount; i++) {
        m.children[i]=null;
        m.childrenTimes[i]=0;
      }
      m.childCount=0;
    }
    for (    ThreadProfiler ti : globalThreadInfos.values()) {
      for (int i=0; i < ti.depth; i++) {
        ti.startTimes[i]=System.nanoTime();
      }
    }
  }
}

public static void resetStats ( ) { synchronized ( globalLock ) { for ( MethodGroup m : globalMethods ) { if ( m == null ) { break ; } m . selfTime = 0 ; m . netTime = 0 ; m . childRecursiveTime = 0 ; m . hits = 0 ; for ( int i = 0 ; i < m . childCount ; i ++ ) { m . children [ i ] = null ; m . childrenTimes [ i ] = 0 ; } m . childCount = 0 ; } for ( ThreadProfiler ti : globalThreadInfos . values ( ) ) { for ( int i = 0 ; i < ti . depth ; i ++ ) { ti . startTimes [ i ] = System . nanoTime ( ) ; } } } }
resets all method counters . currently active methods are not affected .
