public void startThreadMonitoring() {
    """
	Starts performance monitoring only for single thread.
	After call of this method you can not start system wide monitoring till call of {@link #stopThreadMonitoring()} is performed.
    """
    switchLock.acquireWriteLock();
    try {
      if (enabled)
        throw new IllegalStateException("Monitoring is already started on system level and can not be started on thread level");

      enabledForCurrentThread.set(true);
      statistics.put(Thread.currentThread(), new OSessionStoragePerformanceStatistic(intervalBetweenSnapshots, Long.MAX_VALUE));
    } finally {
      switchLock.releaseWriteLock();
    }
  }
public void startThreadMonitoring() {
    switchLock.acquireWriteLock();
    try {
      if (enabled)
        throw new IllegalStateException("Monitoring is already started on system level and can not be started on thread level");

      enabledForCurrentThread.set(true);
      statistics.put(Thread.currentThread(), new OSessionStoragePerformanceStatistic(intervalBetweenSnapshots, Long.MAX_VALUE));
    } finally {
      switchLock.releaseWriteLock();
    }
  }
public void startThreadMonitoring ( ) { switchLock . acquireWriteLock ( ) ; try { if ( enabled ) throw new IllegalStateException ( "Monitoring is already started on system level and can not be started on thread level" ) ; enabledForCurrentThread . set ( true ) ; statistics . put ( Thread . currentThread ( ) , new OSessionStoragePerformanceStatistic ( intervalBetweenSnapshots , Long . MAX_VALUE ) ) ; } finally { switchLock . releaseWriteLock ( ) ; } }
Starts performance monitoring only for single thread.
After call of this method you can not start system wide monitoring till call of {@link #stopThreadMonitoring()} is performed.
Starts performance monitoring only for single thread . After call of this method you can not start system wide monitoring till call of {