com.github.marschall.micrometer.jfr.StatisticsMode Maven / Gradle / Ivy
package com.github.marschall.micrometer.jfr;
import io.micrometer.core.instrument.LongTaskTimer;
import io.micrometer.core.instrument.Timer;
/**
* How the statistics for {@link Timer} and {@link LongTaskTimer} should
* be optimized.
*/
public enum StatisticsMode {
/**
* Do not implement statistics for {@link Timer} and {@link LongTaskTimer}.
*
* While this gives you the best performance and lowest overhead this
* will have impact the following methods which will no longer return
* meaningful results.
*
* - {@link Timer#takeSnapshot()}
* - {@link Timer#totalTime(java.util.concurrent.TimeUnit)}
* - {@link Timer#max(java.util.concurrent.TimeUnit)}
* - {@link LongTaskTimer#takeSnapshot()}
* - {@link LongTaskTimer#max(java.util.concurrent.TimeUnit)}
*
*/
NONE,
/**
* Optimize for memory usage.
*/
MEMORY,
/**
* Optimize for concurrency.
*/
CONCURRENCY;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy