public void tookSample(long nanosSpentWorking, int statResources, long nanosSpentSleeping) {
    samplerStats.incInt(sampleCountId, 1);
    samplerStats.incLong(sampleTimeId, nanosSpentWorking / 1000000);
    samplerStats.setInt(delayDurationId, (int) (nanosSpentSleeping / 1000000));
    samplerStats.setInt(statResourcesId, statResources);
  }
Statistics related to the statistic sampler.
geode-core/src/main/java/org/apache/geode/internal/statistics/StatSamplerStats.java