Path: blob/master/src/java.management/share/classes/sun/management/HotspotCompilationMBean.java
41152 views
/*1* Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package sun.management;2627import sun.management.counter.Counter;2829/**30* Hotspot internal management interface for the compilation system.31*/32public interface HotspotCompilationMBean {3334/**35* Returns the number of compiler threads.36*37* @return the number of compiler threads.38*/39public int getCompilerThreadCount();4041/**42* Returns the statistic of all compiler threads.43*44* @return a list of {@link CompilerThreadStat} object containing45* the statistic of a compiler thread.46*47*/48@Deprecated49public java.util.List<CompilerThreadStat> getCompilerThreadStats();5051/**52* Returns the total number of compiles.53*54* @return the total number of compiles.55*/56public long getTotalCompileCount();5758/**59* Returns the number of bailout compiles.60*61* @return the number of bailout compiles.62*/63public long getBailoutCompileCount();6465/**66* Returns the number of invalidated compiles.67*68* @return the number of invalidated compiles.69*/70public long getInvalidatedCompileCount();7172/**73* Returns the method information of the last compiled method.74*75* @return a {@link MethodInfo} of the last compiled method.76*/77public MethodInfo getLastCompile();7879/**80* Returns the method information of the last failed compile.81*82* @return a {@link MethodInfo} of the last failed compile.83*/84public MethodInfo getFailedCompile();8586/**87* Returns the method information of the last invalidated compile.88*89* @return a {@link MethodInfo} of the last invalidated compile.90*/91public MethodInfo getInvalidatedCompile();9293/**94* Returns the number of bytes for the code of the95* compiled methods.96*97* @return the number of bytes for the code of the compiled methods.98*/99public long getCompiledMethodCodeSize();100101/**102* Returns the number of bytes occupied by the compiled methods.103*104* @return the number of bytes occupied by the compiled methods.105*/106public long getCompiledMethodSize();107108/**109* Returns a list of internal counters maintained in the Java110* virtual machine for the compilation system.111*112* @return a list of internal counters maintained in the VM113* for the compilation system.114*/115public java.util.List<Counter> getInternalCompilerCounters();116}117118119