Skip to content

feat(plugins): run the Java profiler with rc profile java - #19

Merged
colinjlacy merged 1 commit into
runtimeconditions:mainfrom
itvi-1234:java-profiler-plugin
Nov 18, 2026
Merged

colinjlacy merged 1 commit into
runtimeconditions:mainfrom
itvi-1234:java-profiler-plugin

Conversation

@itvi-1234

Copy link
Copy Markdown
Member

Add the Java profiler as an optional language add-on, found the way the TypeScript one is: rc-profiler-java on PATH, or the absolute path in RC_JAVA_PROFILER. It is run only if its --version --json lists core profile schema 0.4.0, and everything after "java" is passed to it unchanged, so it keeps its own flags such as --classpath.

The add-on is a launcher that starts the jar on the JDK named by RC_JAVA_HOME or JAVA_HOME, or the one bundled in its system package, or java on PATH, and says what is missing. So rc lists no runtime for it and does not look for java itself. rc plugins list shows it, and the deb suggests rc-profiler-java.

Tested with a fake runner and, by hand, with the real launcher and jar: rc plugins list shows java ready, and rc profile java generate prints the profile. An existing test used profile java as an example of an unknown command; it now uses ruby.

Add the Java profiler as an optional language add-on, found the way the TypeScript one is: rc-profiler-java on PATH,
or the absolute path in RC_JAVA_PROFILER. It is run only if its --version --json lists core profile schema 0.4.0, and
everything after "java" is passed to it unchanged, so it keeps its own flags such as --classpath.

The add-on is a launcher that starts the jar on the JDK named by RC_JAVA_HOME or JAVA_HOME, or the one bundled in its
system package, or java on PATH, and says what is missing. So rc lists no runtime for it and does not look for java
itself. rc plugins list shows it, and the deb suggests rc-profiler-java.

Tested with a fake runner and, by hand, with the real launcher and jar: rc plugins list shows java ready, and rc
profile java generate prints the profile. An existing test used profile java as an example of an unknown command; it
now uses ruby.
@colinjlacy
colinjlacy merged commit 8a8c531 into runtimeconditions:main Nov 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants