Class HeapDumping

java.lang.Object
net.minecraft.util.HeapDumping

public class HeapDumping extends Object
A heap-dumping (dumps all object data in a JVM) utility using HotSpotDiagnosticMXBean from the Java Management Extensions API.
Mappings:
Namespace Name
official agn
intermediary net/minecraft/class_5995
named net/minecraft/util/HeapDumping
  • Field Details

    • HOTSPOT_DIAGNOSTIC_MXBEAN_NAME

      private static final String HOTSPOT_DIAGNOSTIC_MXBEAN_NAME
      String representation of the ObjectName for the HotSpotDiagnosticMXBean.
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Lagn;a:Ljava/lang/String;
      intermediary field_29840 Lnet/minecraft/class_5995;field_29840:Ljava/lang/String;
      named HOTSPOT_DIAGNOSTIC_MXBEAN_NAME Lnet/minecraft/util/HeapDumping;HOTSPOT_DIAGNOSTIC_MXBEAN_NAME:Ljava/lang/String;
    • bean

      Mappings:
      Namespace Name Mixin selector
      official b Lagn;b:Lcom/sun/management/HotSpotDiagnosticMXBean;
      intermediary field_29841 Lnet/minecraft/class_5995;field_29841:Lcom/sun/management/HotSpotDiagnosticMXBean;
      named bean Lnet/minecraft/util/HeapDumping;bean:Lcom/sun/management/HotSpotDiagnosticMXBean;
  • Constructor Details

    • HeapDumping

      public HeapDumping()
  • Method Details

    • getBean

      private static HotSpotDiagnosticMXBean getBean()
      Mappings:
      Namespace Name Mixin selector
      official a Lagn;a()Lcom/sun/management/HotSpotDiagnosticMXBean;
      intermediary method_34934 Lnet/minecraft/class_5995;method_34934()Lcom/sun/management/HotSpotDiagnosticMXBean;
      named getBean Lnet/minecraft/util/HeapDumping;getBean()Lcom/sun/management/HotSpotDiagnosticMXBean;
    • dump

      public static void dump(String outputFile, boolean live)
      Dumps the heap to the outputFile file in the same format as the hprof heap dump.
      Parameters:
      outputFile - the system-dependent file name
      live - if true dump only live objects, i.e. objects that are reachable from others
      See Also:
      HotSpotDiagnosticMXBean.dumpHeap(String, boolean)
      Mappings:
      Namespace Name Mixin selector
      official a Lagn;a(Ljava/lang/String;Z)V
      intermediary method_34935 Lnet/minecraft/class_5995;method_34935(Ljava/lang/String;Z)V
      named dump Lnet/minecraft/util/HeapDumping;dump(Ljava/lang/String;Z)V