Skip to content

Commit 29c7034

Browse files
jfr substitutions
1 parent 6055f0a commit 29c7034

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jfr/Target_jdk_jfr_internal_JVM.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,12 @@ public static void setMethodSamplingPeriod(long type, long intervalMillis) {
296296
SubstrateJVM.get().setMethodSamplingInterval(type, intervalMillis);
297297
}
298298

299+
/** See {@code JVM#setCPUThrottle}. */
300+
@Substitute
301+
public static void setCPUThrottle(double rate, boolean autoAdapt) {
302+
// JFR CPUTimeSample is not supported.
303+
}
304+
299305
/** See {@link JVM#setOutput}. */
300306
@Substitute
301307
public static void setOutput(String file) {
@@ -652,6 +658,24 @@ public static boolean isProduct() {
652658
*/
653659
return true;
654660
}
661+
662+
/** See {@link JVM#setMethodTraceFilters}. */
663+
@Substitute
664+
public static long[] setMethodTraceFilters(
665+
String[] classes,
666+
String[] methods,
667+
String[] annotations,
668+
int[] modification) {
669+
// JFR method tracing is not supported. No filters can be used so return null.
670+
return null;
671+
}
672+
673+
/** See {@link JVM#drainStaleMethodTracerIds}. */
674+
@Substitute
675+
public static long[] drainStaleMethodTracerIds() {
676+
// JFR method tracing is not supported. Return no stale IDs.
677+
return null;
678+
}
655679
}
656680

657681
class Target_jdk_jfr_internal_JVM_Util {

0 commit comments

Comments
 (0)