--- old/src/share/vm/services/diagnosticCommand.hpp 2015-01-07 15:16:53.000000000 -0800 +++ new/src/share/vm/services/diagnosticCommand.hpp 2015-01-07 15:16:53.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -271,6 +271,22 @@ virtual void execute(DCmdSource source, TRAPS); }; + +class ClassHierarchyDCmd : public DCmd { +public: + ClassHierarchyDCmd(outputStream* output, bool heap) : DCmd(output, heap) { } + static const char* name() { + return "VM.class_hierarchy"; + } + static const char* description() { + return "Print a list of all loaded classes, indented to show the class hiearchy."; + } + static const char* impact() { + return "Medium: Depends on number of loaded classes."; + } + virtual void execute(DCmdSource source, TRAPS); +}; + // See also: thread_dump in attachListener.cpp class ThreadDumpDCmd : public DCmdWithParser { protected: