All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.prometheus.metrics.instrumentation.jvm.NativeImageChecker Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
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