类 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
    • 字段详细资料

      • HOTSPOT_DIAGNOSTIC_MXBEAN_NAME

        private static final String HOTSPOT_DIAGNOSTIC_MXBEAN_NAME
        String representation of the ObjectName for the HotSpotDiagnosticMXBean.
        另请参阅:
        常量字段值
        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

        @Nullable
        private static @Nullable HotSpotDiagnosticMXBean 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;
    • 构造器详细资料

      • HeapDumping

        public HeapDumping()
    • 方法详细资料

      • 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.
        参数:
        outputFile - the system-dependent file name
        live - if true dump only live objects, i.e. objects that are reachable from others
        另请参阅:
        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