core/src/main/java/com/orientechnologies/orient/core/sql/OChainedIndexProxy.java
private void updateStatistic(OIndex<?> index) {

    final OProfiler profiler = Orient.instance().getProfiler();
    if (profiler.isRecording()) {
      Orient.instance().getProfiler()
          .updateCounter(profiler.getDatabaseMetric(index.getDatabaseName(), "query.indexUsed"), "Used index in query", +1);

      final int paramCount = index.getDefinition().getParamCount();
      if (paramCount > 1) {
        final String profiler_prefix = profiler.getDatabaseMetric(index.getDatabaseName(), "query.compositeIndexUsed");
        profiler.updateCounter(profiler_prefix, "Used composite index in query", +1);
        profiler
            .updateCounter(profiler_prefix + "." + paramCount, "Used composite index in query with " + paramCount + " params", +1);
      }
    }
  }
private void updateStatistic(OIndex<?> index) {

    final OProfiler profiler = Orient.instance().getProfiler();
    if (profiler.isRecording()) {
      Orient.instance().getProfiler()
          .updateCounter(profiler.getDatabaseMetric(index.getDatabaseName(), "query.indexUsed"), "Used index in query", +1);

      final int paramCount = index.getDefinition().getParamCount();
      if (paramCount > 1) {
        final String profiler_prefix = profiler.getDatabaseMetric(index.getDatabaseName(), "query.compositeIndexUsed");
        profiler.updateCounter(profiler_prefix, "Used composite index in query", +1);
        profiler
            .updateCounter(profiler_prefix + "." + paramCount, "Used composite index in query with " + paramCount + " params", +1);
      }
    }
  }
private void updateStatistic ( OIndex < ? > index ) { final OProfiler profiler = Orient . instance ( ) . getProfiler ( ) ; if ( profiler . isRecording ( ) ) { Orient . instance ( ) . getProfiler ( ) . updateCounter ( profiler . getDatabaseMetric ( index . getDatabaseName ( ) , "query.indexUsed" ) , "Used index in query" , + 1 ) ; final int paramCount = index . getDefinition ( ) . getParamCount ( ) ; if ( paramCount > 1 ) { final String profiler_prefix = profiler . getDatabaseMetric ( index . getDatabaseName ( ) , "query.compositeIndexUsed" ) ; profiler . updateCounter ( profiler_prefix , "Used composite index in query" , + 1 ) ; profiler . updateCounter ( profiler_prefix + "." + paramCount , "Used composite index in query with " + paramCount + " params" , + 1 ) ; } } }
Register statistic information about usage of index in {@link OProfilerStub}.

@param index which usage is registering.
Register statistic information about usage of index in { @link OProfilerStub } .