core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/statistic/OSessionStoragePerformanceStatistic.java
public void stopPageWriteInCacheTimer() {
    final long endTs = nanoTimer.getNano();
    final long timeDiff = (endTs - timeStamps.pop());

    performanceCountersHolder.pageWriteToCacheTime += timeDiff;
    performanceCountersHolder.pageWriteToCacheCount++;

    for (Component component : componentsStack) {
      final String componentName = component.name;
      PerformanceCountersHolder cHolder = countersByComponent
          .computeIfAbsent(componentName, k -> component.type.newCountersHolder());

      cHolder.pageWriteToCacheTime += timeDiff;
      cHolder.pageWriteToCacheCount++;
    }

    makeSnapshotIfNeeded(endTs);
  }
public void stopPageWriteInCacheTimer() {
    final long endTs = nanoTimer.getNano();
    final long timeDiff = (endTs - timeStamps.pop());

    performanceCountersHolder.pageWriteToCacheTime += timeDiff;
    performanceCountersHolder.pageWriteToCacheCount++;

    for (Component component : componentsStack) {
      final String componentName = component.name;
      PerformanceCountersHolder cHolder = countersByComponent
          .computeIfAbsent(componentName, k -> component.type.newCountersHolder());

      cHolder.pageWriteToCacheTime += timeDiff;
      cHolder.pageWriteToCacheCount++;
    }

    makeSnapshotIfNeeded(endTs);
  }
public void stopPageWriteInCacheTimer ( ) { final long endTs = nanoTimer . getNano ( ) ; final long timeDiff = ( endTs - timeStamps . pop ( ) ) ; performanceCountersHolder . pageWriteToCacheTime += timeDiff ; performanceCountersHolder . pageWriteToCacheCount ++ ; for ( Component component : componentsStack ) { final String componentName = component . name ; PerformanceCountersHolder cHolder = countersByComponent . computeIfAbsent ( componentName , k -> component . type . newCountersHolder ( ) ) ; cHolder . pageWriteToCacheTime += timeDiff ; cHolder . pageWriteToCacheCount ++ ; } makeSnapshotIfNeeded ( endTs ) ; }
Stops and records results of timer which counts how much time was spent to write page to disk cache.
<p>
If you wish to gather statistic for current durable component please call
{@link #startComponentOperation(String, ComponentType)} method before the call and {@link #completeComponentOperation()} after
the call.
Stops and records results of timer which counts how much time was spent to write page to disk cache . <p > If you wish to gather statistic for current durable component please call {