< prev index next >

src/java.management/share/classes/sun/management/HotspotCompilation.java

Print this page
rev 12824 : 8134607: Remove per-compiler performance counters
Reviewed-by: duke

@@ -88,10 +88,11 @@
             this.type = (LongCounter) lookup(basename + "type");
             this.compiles = (LongCounter) lookup(basename + "compiles");
             this.time = (LongCounter) lookup(basename + "time");
         }
 
+        @SuppressWarnings("deprecation")
         CompilerThreadStat getCompilerThreadStat() {
             MethodInfo minfo = new MethodInfo(method.stringValue(),
                                               (int) type.longValue(),
                                               -1);
             return new CompilerThreadStat(name,

@@ -180,10 +181,11 @@
 
     public long getCompiledMethodSize() {
         return nmethodSize.longValue();
     }
 
+    @Deprecated
     public List<CompilerThreadStat> getCompilerThreadStats() {
         List<CompilerThreadStat> list = new ArrayList<>(threads.size());
         for (CompilerThreadInfo info : threads) {
             list.add(info.getCompilerThreadStat());
         }
< prev index next >