dotty.tools.dotc.profile.ExternalToolHook Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala3-compiler_3 Show documentation
Show all versions of scala3-compiler_3 Show documentation
scala3-compiler-bootstrapped
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