Package net.minecraft.util
Class HeapDumping
java.lang.Object
net.minecraft.util.HeapDumping
A heap-dumping (dumps all object data in a JVM) utility using
HotSpotDiagnosticMXBean from the Java Management Extensions API.- Mappings:
Namespace Name official agnintermediary net/minecraft/class_5995named net/minecraft/util/HeapDumping
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static @Nullable HotSpotDiagnosticMXBeanprivate static StringString representation of theObjectNamefor theHotSpotDiagnosticMXBean. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDumps the heap to theoutputFilefile in the same format as the hprof heap dump.private static HotSpotDiagnosticMXBeangetBean()
-
Field Details
-
HOTSPOT_DIAGNOSTIC_MXBEAN_NAME
String representation of theObjectNamefor theHotSpotDiagnosticMXBean.- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official aLagn;a:Ljava/lang/String;intermediary field_29840Lnet/minecraft/class_5995;field_29840:Ljava/lang/String;named HOTSPOT_DIAGNOSTIC_MXBEAN_NAMELnet/minecraft/util/HeapDumping;HOTSPOT_DIAGNOSTIC_MXBEAN_NAME:Ljava/lang/String;
-
bean
- Mappings:
Namespace Name Mixin selector official bLagn;b:Lcom/sun/management/HotSpotDiagnosticMXBean;intermediary field_29841Lnet/minecraft/class_5995;field_29841:Lcom/sun/management/HotSpotDiagnosticMXBean;named beanLnet/minecraft/util/HeapDumping;bean:Lcom/sun/management/HotSpotDiagnosticMXBean;
-
-
Constructor Details
-
HeapDumping
public HeapDumping()
-
-
Method Details
-
getBean
- Mappings:
Namespace Name Mixin selector official aLagn;a()Lcom/sun/management/HotSpotDiagnosticMXBean;intermediary method_34934Lnet/minecraft/class_5995;method_34934()Lcom/sun/management/HotSpotDiagnosticMXBean;named getBeanLnet/minecraft/util/HeapDumping;getBean()Lcom/sun/management/HotSpotDiagnosticMXBean;
-
dump
Dumps the heap to theoutputFilefile in the same format as the hprof heap dump.- Parameters:
outputFile- the system-dependent file namelive- iftruedump only live objects, i.e. objects that are reachable from others- See Also:
HotSpotDiagnosticMXBean.dumpHeap(String, boolean)- Mappings:
Namespace Name Mixin selector official aLagn;a(Ljava/lang/String;Z)Vintermediary method_34935Lnet/minecraft/class_5995;method_34935(Ljava/lang/String;Z)Vnamed dumpLnet/minecraft/util/HeapDumping;dump(Ljava/lang/String;Z)V
-