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

dotty.tools.dotc.profile.ExternalToolHook Maven / Gradle / Ivy

There is a newer version: 3.6.4-RC1-bin-20241220-0bfa1af-NIGHTLY
Show newest version
package dotty.tools.dotc.profile;

/**
 * This is an external tool hook, it allows an external tool such as YourKit or JProfiler to instrument a
 * particular phase of the compiler.
 * Profilers have hooks to allow starting and stopping profiling on a given method invocation.
 * To use add -Yprofile-external-tool (defaults to typer) or -Yprofile-external-tool: (for a specific compiler phase)
 * to the compiler flags.
 *
 * 'before' will be called at the start of the target phase and 'after' at the end, allowing custom profiling to be
 * triggered.
 */
public class ExternalToolHook {
    private ExternalToolHook() {}
    public static void before() {}
    public static void after() {}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy