Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/classes/sun/management/HotspotCompilationMBean.java
38827 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*/48public java.util.List<CompilerThreadStat> getCompilerThreadStats();4950/**51* Returns the total number of compiles.52*53* @return the total number of compiles.54*/55public long getTotalCompileCount();5657/**58* Returns the number of bailout compiles.59*60* @return the number of bailout compiles.61*/62public long getBailoutCompileCount();6364/**65* Returns the number of invalidated compiles.66*67* @return the number of invalidated compiles.68*/69public long getInvalidatedCompileCount();7071/**72* Returns the method information of the last compiled method.73*74* @return a {@link MethodInfo} of the last compiled method.75*/76public MethodInfo getLastCompile();7778/**79* Returns the method information of the last failed compile.80*81* @return a {@link MethodInfo} of the last failed compile.82*/83public MethodInfo getFailedCompile();8485/**86* Returns the method information of the last invalidated compile.87*88* @return a {@link MethodInfo} of the last invalidated compile.89*/90public MethodInfo getInvalidatedCompile();9192/**93* Returns the number of bytes for the code of the94* compiled methods.95*96* @return the number of bytes for the code of the compiled methods.97*/98public long getCompiledMethodCodeSize();99100/**101* Returns the number of bytes occupied by the compiled methods.102*103* @return the number of bytes occupied by the compiled methods.104*/105public long getCompiledMethodSize();106107/**108* Returns a list of internal counters maintained in the Java109* virtual machine for the compilation system.110*111* @return a list of internal counters maintained in the VM112* for the compilation system.113*/114public java.util.List<Counter> getInternalCompilerCounters();115}116117118