hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/ClassLoaderStats.java
changeset 36508 5f9eee6b383b
parent 35217 ce4b5303a813
child 38261 ddf6760621fc
equal deleted inserted replaced
36507:c80f6ecb0bb3 36508:5f9eee6b383b
    29 
    29 
    30 import sun.jvm.hotspot.debugger.*;
    30 import sun.jvm.hotspot.debugger.*;
    31 import sun.jvm.hotspot.memory.*;
    31 import sun.jvm.hotspot.memory.*;
    32 import sun.jvm.hotspot.oops.*;
    32 import sun.jvm.hotspot.oops.*;
    33 import sun.jvm.hotspot.runtime.*;
    33 import sun.jvm.hotspot.runtime.*;
    34 import sun.jvm.hotspot.tools.*;
       
    35 import sun.jvm.hotspot.utilities.*;
    34 import sun.jvm.hotspot.utilities.*;
       
    35 import jdk.internal.vm.agent.spi.ToolProvider;
    36 
    36 
    37 /**
    37 /**
    38   A command line tool to print class loader statistics.
    38   A command line tool to print class loader statistics.
    39 */
    39 */
    40 
    40 
    41 public class ClassLoaderStats extends Tool {
    41 public class ClassLoaderStats extends Tool implements ToolProvider {
    42    boolean verbose = true;
    42    boolean verbose = true;
    43 
    43 
    44    public ClassLoaderStats() {
    44    public ClassLoaderStats() {
    45       super();
    45       super();
    46    }
    46    }
    47 
    47 
    48    public ClassLoaderStats(JVMDebugger d) {
    48    public ClassLoaderStats(JVMDebugger d) {
    49       super(d);
    49       super(d);
       
    50    }
       
    51 
       
    52    @Override
       
    53    public String getName() {
       
    54       return "classLoaderStats";
       
    55    }
       
    56 
       
    57    @Override
       
    58    public void run(String... arguments) {
       
    59       execute(arguments);
    50    }
    60    }
    51 
    61 
    52    public static void main(String[] args) {
    62    public static void main(String[] args) {
    53       ClassLoaderStats cls = new ClassLoaderStats();
    63       ClassLoaderStats cls = new ClassLoaderStats();
    54       cls.execute(args);
    64       cls.execute(args);