io.prometheus.metrics.instrumentation.jvm.NativeImageChecker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmx_prometheus_httpserver Show documentation
Show all versions of jmx_prometheus_httpserver Show documentation
See https://github.com/prometheus/jmx_exporter/blob/master/README.md
package io.prometheus.metrics.instrumentation.jvm;
/**
* Contains utilities to check if we are running inside or building for native image. Default behavior is to check
* if specific for graalvm runtime property is present. For additional optimizations it is possible to do add
* "--initialize-at-build-time=io.prometheus.client.hotspot.NativeImageChecker" to graalvm native image build command and
* the native image will be identified during build time.
*/
class NativeImageChecker {
static final boolean isGraalVmNativeImage = System.getProperty("org.graalvm.nativeimage.imagecode") != null;
private NativeImageChecker() {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy