< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug/src/org/graalvm/compiler/debug/DebugContext.java

Print this page

        

*** 237,255 **** String trackMemUseValue = TrackMemUse.getValue(options); this.unscopedCounters = parseUnscopedMetricSpec(Counters.getValue(options), "".equals(Count.getValue(options)), false); this.unscopedTimers = parseUnscopedMetricSpec(Timers.getValue(options), "".equals(timeValue), true); this.unscopedMemUseTrackers = parseUnscopedMetricSpec(MemUseTrackers.getValue(options), "".equals(trackMemUseValue), true); - if (unscopedTimers != null || timeValue != null) { - if (!GraalServices.isCurrentThreadCpuTimeSupported()) { - throw new IllegalArgumentException("Time and Timers options require VM support for querying CPU time"); - } - } - if (unscopedMemUseTrackers != null || trackMemUseValue != null) { if (!GraalServices.isThreadAllocatedMemorySupported()) { ! throw new IllegalArgumentException("MemUseTrackers and TrackMemUse options require VM support for querying thread allocated memory"); } } this.scopesEnabled = DumpOnError.getValue(options) || Dump.getValue(options) != null || --- 237,249 ---- String trackMemUseValue = TrackMemUse.getValue(options); this.unscopedCounters = parseUnscopedMetricSpec(Counters.getValue(options), "".equals(Count.getValue(options)), false); this.unscopedTimers = parseUnscopedMetricSpec(Timers.getValue(options), "".equals(timeValue), true); this.unscopedMemUseTrackers = parseUnscopedMetricSpec(MemUseTrackers.getValue(options), "".equals(trackMemUseValue), true); if (unscopedMemUseTrackers != null || trackMemUseValue != null) { if (!GraalServices.isThreadAllocatedMemorySupported()) { ! TTY.println("WARNING: Missing VM support for MemUseTrackers and TrackMemUse options so all reported memory usage will be 0"); } } this.scopesEnabled = DumpOnError.getValue(options) || Dump.getValue(options) != null ||
< prev index next >