Class ClassDiagnostic
java.lang.Object
clazzfish.monitor.internal.ClassDiagnostic
The ClassDiagnostic is a little wrapper around Sun's MBean for
DiagnosticCommand. This MBean allows you to contact the GC to ask
for the loaded classes.
- Since:
- 2.3 (15.12.24)
- Author:
- oboehm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis is a shortcut for the call of the preferred method.Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
ClassDiagnostic
public ClassDiagnostic()
-
-
Method Details
-
getLoadedClasses
-
getLoadedClassesFromGC
Deprecated, for removal: This API element is subject to removal in a future version.replaced bygetLoadedClassesFromVmClassHierarchy()
Ask the GC (garbage collector) via JMX which classes are loaded.NOTE: The GC handles only instantiated classes. I.e. static classes (and propably abstract classes) are not returned.
- Returns:
- a list of instantiated classes
-
getLoadedClassesFromVmClassHierarchy
-
getLoadedClassesFromVmClassHierarchy()