< prev index next >
test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCTest.java
Print this page
rev 49267 : [mq]: event5
rev 49268 : [mq]: event6
@@ -40,11 +40,11 @@
public static void main(String[] args) {
if (!HeapMonitor.eventStorageIsEmpty()) {
throw new RuntimeException("Statistics should be null to begin with.");
}
- HeapMonitor.enableSamplingRate();
+ HeapMonitor.enableSamplingEvents();
List<Frame> frameList = HeapMonitor.allocate();
frameList.add(new Frame("main", "([Ljava/lang/String;)V", "HeapMonitorGCTest.java", 47));
Frame[] frames = frameList.toArray(new Frame[0]);
< prev index next >