RFR: Prototype AOTMXBean
Ioi Lam
iklam at openjdk.org
Thu Apr 17 20:57:04 UTC 2025
On Wed, 2 Apr 2025 23:17:30 GMT, Mat Carter <macarte at openjdk.org> wrote:
> /**
> * Returns the string representing the current AOT mode of
> * operation.
> *
> * @return the string representing the current AOT mode.
> */
> public String getMode();
>
> /**
> * Tests if a recording is in progress.
> *
> * @return {@code true} if a recording is in progress; {@code false} otherwise.
> */
> public boolean isRecording();
>
> /**
> * If a recording is in progress or has been completed, then returns the duration in milliseconds
> *
> * @return duration of the recording in milliseconds.
> */
> public long getRecordingDuration();
>
> /**
> * If a recording is in progress, then stops the recording.
> *
> * @return {@code true} if a recording was stopped; {@code false} otherwise.
> */
> public boolean endRecording();
test/hotspot/jtreg/runtime/cds/appcds/leyden/EndTrainingWithAOTMXBean.java line 77:
> 75: public String[] vmArgs(RunMode runMode) {
> 76: return new String[] {
> 77: "-Xlog:cds+class=debug"
For completeness, I think we should add `"--add-modules=java.management"` to here.
-------------
PR Review Comment: https://git.openjdk.org/leyden/pull/52#discussion_r2049634392
More information about the leyden-dev
mailing list