public class org.graalvm.compiler.debug.GlobalMetrics
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.graalvm.compiler.debug.GlobalMetrics
  super_class: java.lang.Object
{
  long[] values;
    descriptor: [J
    flags: (0x0000) 

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.debug.GlobalMetrics this
         0: .line 40
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.graalvm.compiler.debug.GlobalMetrics this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/debug/GlobalMetrics;

  public synchronized void add(org.graalvm.compiler.debug.DebugContext);
    descriptor: (Lorg/graalvm/compiler/debug/DebugContext;)V
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // org.graalvm.compiler.debug.GlobalMetrics this
        start local 1 // org.graalvm.compiler.debug.DebugContext debug
         0: .line 47
            aload 0 /* this */
            aload 1 /* debug */
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.GlobalMetrics.values:[J
            invokevirtual org.graalvm.compiler.debug.DebugContext.addValuesTo:([J)[J
            putfield org.graalvm.compiler.debug.GlobalMetrics.values:[J
         1: .line 48
            return
        end local 1 // org.graalvm.compiler.debug.DebugContext debug
        end local 0 // org.graalvm.compiler.debug.GlobalMetrics this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    2     0   this  Lorg/graalvm/compiler/debug/GlobalMetrics;
            0    2     1  debug  Lorg/graalvm/compiler/debug/DebugContext;
    MethodParameters:
       Name  Flags
      debug  

  public void clear();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.debug.GlobalMetrics this
         0: .line 54
            aload 0 /* this */
            aconst_null
            putfield org.graalvm.compiler.debug.GlobalMetrics.values:[J
         1: .line 55
            return
        end local 0 // org.graalvm.compiler.debug.GlobalMetrics this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/graalvm/compiler/debug/GlobalMetrics;

  public org.graalvm.util.EconomicMap<org.graalvm.compiler.debug.MetricKey, java.lang.Long> asKeyValueMap();
    descriptor: ()Lorg/graalvm/util/EconomicMap;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=7, args_size=1
        start local 0 // org.graalvm.compiler.debug.GlobalMetrics this
         0: .line 61
            invokestatic org.graalvm.compiler.debug.KeyRegistry.getKeys:()Ljava/util/List;
            astore 1 /* keys */
        start local 1 // java.util.List keys
         1: .line 62
            aload 1 /* keys */
            getstatic org.graalvm.compiler.debug.MetricKey.NAME_COMPARATOR:Ljava/util/Comparator;
            invokestatic java.util.Collections.sort:(Ljava/util/List;Ljava/util/Comparator;)V
         2: .line 63
            aload 1 /* keys */
            invokeinterface java.util.List.size:()I
            invokestatic org.graalvm.util.EconomicMap.create:(I)Lorg/graalvm/util/EconomicMap;
            astore 2 /* res */
        start local 2 // org.graalvm.util.EconomicMap res
         3: .line 64
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.GlobalMetrics.values:[J
            astore 3 /* vals */
        start local 3 // long[] vals
         4: .line 65
            aload 1 /* keys */
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            astore 5
            goto 11
      StackMap locals: org.graalvm.compiler.debug.GlobalMetrics java.util.List org.graalvm.util.EconomicMap long[] top java.util.Iterator
      StackMap stack:
         5: aload 5
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast org.graalvm.compiler.debug.MetricKey
            astore 4 /* key */
        start local 4 // org.graalvm.compiler.debug.MetricKey key
         6: .line 66
            aload 4 /* key */
            checkcast org.graalvm.compiler.debug.AbstractKey
            invokevirtual org.graalvm.compiler.debug.AbstractKey.getIndex:()I
            istore 6 /* index */
        start local 6 // int index
         7: .line 67
            aload 3 /* vals */
            ifnull 8
            iload 6 /* index */
            aload 3 /* vals */
            arraylength
            if_icmplt 10
         8: .line 68
      StackMap locals: org.graalvm.compiler.debug.GlobalMetrics java.util.List org.graalvm.util.EconomicMap long[] org.graalvm.compiler.debug.MetricKey java.util.Iterator int
      StackMap stack:
            aload 2 /* res */
            aload 4 /* key */
            lconst_0
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
            invokeinterface org.graalvm.util.EconomicMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         9: .line 69
            goto 11
        10: .line 70
      StackMap locals:
      StackMap stack:
            aload 2 /* res */
            aload 4 /* key */
            aload 3 /* vals */
            iload 6 /* index */
            laload
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
            invokeinterface org.graalvm.util.EconomicMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
        end local 6 // int index
        end local 4 // org.graalvm.compiler.debug.MetricKey key
        11: .line 65
      StackMap locals: org.graalvm.compiler.debug.GlobalMetrics java.util.List org.graalvm.util.EconomicMap long[] top java.util.Iterator
      StackMap stack:
            aload 5
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 5
        12: .line 73
            aload 2 /* res */
            areturn
        end local 3 // long[] vals
        end local 2 // org.graalvm.util.EconomicMap res
        end local 1 // java.util.List keys
        end local 0 // org.graalvm.compiler.debug.GlobalMetrics this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0   13     0   this  Lorg/graalvm/compiler/debug/GlobalMetrics;
            1   13     1   keys  Ljava/util/List<Lorg/graalvm/compiler/debug/MetricKey;>;
            3   13     2    res  Lorg/graalvm/util/EconomicMap<Lorg/graalvm/compiler/debug/MetricKey;Ljava/lang/Long;>;
            4   13     3   vals  [J
            6   11     4    key  Lorg/graalvm/compiler/debug/MetricKey;
            7   11     6  index  I
    Signature: ()Lorg/graalvm/util/EconomicMap<Lorg/graalvm/compiler/debug/MetricKey;Ljava/lang/Long;>;

  public void print(org.graalvm.compiler.options.OptionValues);
    descriptor: (Lorg/graalvm/compiler/options/OptionValues;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=13, args_size=2
        start local 0 // org.graalvm.compiler.debug.GlobalMetrics this
        start local 1 // org.graalvm.compiler.options.OptionValues options
         0: .line 82
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.GlobalMetrics.values:[J
            astore 2 /* vals */
        start local 2 // long[] vals
         1: .line 83
            aload 2 /* vals */
            ifnull 36
         2: .line 84
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.debug.GlobalMetrics.asKeyValueMap:()Lorg/graalvm/util/EconomicMap;
            astore 3 /* map */
        start local 3 // org.graalvm.util.EconomicMap map
         3: .line 85
            getstatic org.graalvm.compiler.debug.DebugOptions.AggregatedMetricsFile:Lorg/graalvm/compiler/options/OptionKey;
            aload 1 /* options */
            invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
            checkcast java.lang.String
            astore 4 /* metricsFile */
        start local 4 // java.lang.String metricsFile
         4: .line 86
            aload 4 /* metricsFile */
            ifnull 6
            aload 4 /* metricsFile */
            ldc ".csv"
            invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
            ifne 5
            aload 4 /* metricsFile */
            ldc ".CSV"
            invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
            ifeq 6
      StackMap locals: long[] org.graalvm.util.EconomicMap java.lang.String
      StackMap stack:
         5: iconst_1
            goto 7
      StackMap locals:
      StackMap stack:
         6: iconst_0
      StackMap locals:
      StackMap stack: int
         7: istore 5 /* csv */
        start local 5 // boolean csv
         8: .line 87
            aconst_null
            astore 6
            aconst_null
            astore 7
         9: aload 4 /* metricsFile */
            ifnonnull 10
            getstatic org.graalvm.compiler.debug.DebugContext.DEFAULT_LOG_STREAM:Ljava/io/PrintStream;
            goto 11
      StackMap locals: int java.lang.Throwable java.lang.Throwable
      StackMap stack:
        10: new java.io.PrintStream
            dup
            aload 4 /* metricsFile */
            iconst_0
            anewarray java.lang.String
            invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
            iconst_0
            anewarray java.nio.file.OpenOption
            invokestatic java.nio.file.Files.newOutputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
            invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
      StackMap locals:
      StackMap stack: java.io.PrintStream
        11: astore 8 /* p */
        start local 8 // java.io.PrintStream p
        12: .line 88
            iload 5 /* csv */
            ifne 15
        13: .line 89
            aload 3 /* map */
            invokeinterface org.graalvm.util.EconomicMap.isEmpty:()Z
            ifne 15
        14: .line 90
            aload 8 /* p */
            ldc "++ Aggregated Metrics ++"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        15: .line 93
      StackMap locals: java.io.PrintStream
      StackMap stack:
            iconst_3
            anewarray java.lang.String
            dup
            iconst_0
            ldc "%s"
            aastore
            dup
            iconst_1
            ldc "%s"
            aastore
            dup
            iconst_2
            ldc "%s"
            aastore
            invokestatic org.graalvm.compiler.debug.CSVUtil.buildFormatString:([Ljava/lang/String;)Ljava/lang/String;
            astore 9 /* csvFormat */
        start local 9 // java.lang.String csvFormat
        16: .line 94
            aload 3 /* map */
            invokeinterface org.graalvm.util.EconomicMap.getEntries:()Lorg/graalvm/util/MapCursor;
            astore 10 /* e */
        start local 10 // org.graalvm.util.MapCursor e
        17: .line 95
            goto 24
        18: .line 96
      StackMap locals: java.lang.String org.graalvm.util.MapCursor
      StackMap stack:
            aload 10 /* e */
            invokeinterface org.graalvm.util.MapCursor.getKey:()Ljava/lang/Object;
            checkcast org.graalvm.compiler.debug.MetricKey
            astore 11 /* key */
        start local 11 // org.graalvm.compiler.debug.MetricKey key
        19: .line 97
            iload 5 /* csv */
            ifeq 23
        20: .line 98
            aload 11 /* key */
            aload 10 /* e */
            invokeinterface org.graalvm.util.MapCursor.getValue:()Ljava/lang/Object;
            checkcast java.lang.Long
            invokevirtual java.lang.Long.longValue:()J
            invokeinterface org.graalvm.compiler.debug.MetricKey.toCSVFormat:(J)Lorg/graalvm/util/Pair;
            astore 12 /* valueAndUnit */
        start local 12 // org.graalvm.util.Pair valueAndUnit
        21: .line 99
            aload 8 /* p */
            aload 9 /* csvFormat */
            iconst_3
            anewarray java.lang.Object
            dup
            iconst_0
            aload 11 /* key */
            invokeinterface org.graalvm.compiler.debug.MetricKey.getName:()Ljava/lang/String;
            aastore
            dup
            iconst_1
            aload 12 /* valueAndUnit */
            invokevirtual org.graalvm.util.Pair.getLeft:()Ljava/lang/Object;
            aastore
            dup
            iconst_2
            aload 12 /* valueAndUnit */
            invokevirtual org.graalvm.util.Pair.getRight:()Ljava/lang/Object;
            aastore
            invokestatic org.graalvm.compiler.debug.CSVUtil$Escape.println:(Ljava/io/PrintStream;Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
            pop
        end local 12 // org.graalvm.util.Pair valueAndUnit
        22: .line 100
            goto 24
        23: .line 101
      StackMap locals: org.graalvm.compiler.debug.MetricKey
      StackMap stack:
            aload 8 /* p */
            new java.lang.StringBuilder
            dup
            aload 11 /* key */
            invokeinterface org.graalvm.compiler.debug.MetricKey.getName:()Ljava/lang/String;
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            ldc "="
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 11 /* key */
            aload 10 /* e */
            invokeinterface org.graalvm.util.MapCursor.getValue:()Ljava/lang/Object;
            checkcast java.lang.Long
            invokevirtual java.lang.Long.longValue:()J
            invokeinterface org.graalvm.compiler.debug.MetricKey.toHumanReadableFormat:(J)Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        end local 11 // org.graalvm.compiler.debug.MetricKey key
        24: .line 95
      StackMap locals:
      StackMap stack:
            aload 10 /* e */
            invokeinterface org.graalvm.util.MapCursor.advance:()Z
            ifne 18
        25: .line 104
            iload 5 /* csv */
            ifne 28
        26: .line 105
            aload 3 /* map */
            invokeinterface org.graalvm.util.EconomicMap.isEmpty:()Z
            ifne 28
        27: .line 106
            aload 8 /* p */
            ldc "-- Aggregated Metrics --"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        end local 10 // org.graalvm.util.MapCursor e
        end local 9 // java.lang.String csvFormat
        28: .line 109
      StackMap locals:
      StackMap stack:
            aload 8 /* p */
            ifnull 36
            aload 8 /* p */
            invokevirtual java.io.PrintStream.close:()V
            goto 36
      StackMap locals:
      StackMap stack: java.lang.Throwable
        29: astore 6
            aload 8 /* p */
            ifnull 30
            aload 8 /* p */
            invokevirtual java.io.PrintStream.close:()V
        end local 8 // java.io.PrintStream p
      StackMap locals:
      StackMap stack:
        30: aload 6
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
        31: astore 7
            aload 6
            ifnonnull 32
            aload 7
            astore 6
            goto 33
      StackMap locals:
      StackMap stack:
        32: aload 6
            aload 7
            if_acmpeq 33
            aload 6
            aload 7
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        33: aload 6
            athrow
      StackMap locals: org.graalvm.compiler.debug.GlobalMetrics org.graalvm.compiler.options.OptionValues long[] org.graalvm.util.EconomicMap java.lang.String int
      StackMap stack: java.io.IOException
        34: astore 6 /* e */
        start local 6 // java.io.IOException e
        35: .line 110
            aload 6 /* e */
            invokevirtual java.io.IOException.printStackTrace:()V
        end local 6 // java.io.IOException e
        end local 5 // boolean csv
        end local 4 // java.lang.String metricsFile
        end local 3 // org.graalvm.util.EconomicMap map
        36: .line 114
      StackMap locals:
      StackMap stack:
            getstatic org.graalvm.compiler.debug.DebugOptions.ListMetrics:Lorg/graalvm/compiler/options/OptionKey;
            aload 1 /* options */
            invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
            checkcast java.lang.Boolean
            invokevirtual java.lang.Boolean.booleanValue:()Z
            ifeq 52
        37: .line 115
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            astore 3 /* p */
        start local 3 // java.io.PrintStream p
        38: .line 116
            aload 3 /* p */
            ldc "++ Metric Keys ++"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        39: .line 117
            invokestatic org.graalvm.compiler.debug.KeyRegistry.getKeys:()Ljava/util/List;
            astore 4 /* keys */
        start local 4 // java.util.List keys
        40: .line 118
            aload 4 /* keys */
            getstatic org.graalvm.compiler.debug.MetricKey.NAME_COMPARATOR:Ljava/util/Comparator;
            invokestatic java.util.Collections.sort:(Ljava/util/List;Ljava/util/Comparator;)V
        41: .line 119
            aload 4 /* keys */
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            astore 6
            goto 50
      StackMap locals: org.graalvm.compiler.debug.GlobalMetrics org.graalvm.compiler.options.OptionValues long[] java.io.PrintStream java.util.List top java.util.Iterator
      StackMap stack:
        42: aload 6
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast org.graalvm.compiler.debug.MetricKey
            astore 5 /* key */
        start local 5 // org.graalvm.compiler.debug.MetricKey key
        43: .line 120
            aload 5 /* key */
            invokeinterface org.graalvm.compiler.debug.MetricKey.getDocName:()Ljava/lang/String;
            astore 7 /* name */
        start local 7 // java.lang.String name
        44: .line 121
            aload 7 /* name */
            ifnull 50
        45: .line 122
            aload 5 /* key */
            invokeinterface org.graalvm.compiler.debug.MetricKey.getDoc:()Ljava/lang/String;
            astore 8 /* doc */
        start local 8 // java.lang.String doc
        46: .line 123
            aload 8 /* doc */
            ifnull 49
        47: .line 124
            aload 3 /* p */
            new java.lang.StringBuilder
            dup
            aload 7 /* name */
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            ldc ": "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 8 /* doc */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        48: .line 125
            goto 50
        49: .line 126
      StackMap locals: org.graalvm.compiler.debug.GlobalMetrics org.graalvm.compiler.options.OptionValues long[] java.io.PrintStream java.util.List org.graalvm.compiler.debug.MetricKey java.util.Iterator java.lang.String java.lang.String
      StackMap stack:
            aload 3 /* p */
            aload 7 /* name */
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        end local 8 // java.lang.String doc
        end local 7 // java.lang.String name
        end local 5 // org.graalvm.compiler.debug.MetricKey key
        50: .line 119
      StackMap locals: org.graalvm.compiler.debug.GlobalMetrics org.graalvm.compiler.options.OptionValues long[] java.io.PrintStream java.util.List top java.util.Iterator
      StackMap stack:
            aload 6
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 42
        51: .line 130
            aload 3 /* p */
            ldc "-- Metric Keys --"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        end local 4 // java.util.List keys
        end local 3 // java.io.PrintStream p
        52: .line 132
      StackMap locals: org.graalvm.compiler.debug.GlobalMetrics org.graalvm.compiler.options.OptionValues long[]
      StackMap stack:
            return
        end local 2 // long[] vals
        end local 1 // org.graalvm.compiler.options.OptionValues options
        end local 0 // org.graalvm.compiler.debug.GlobalMetrics this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   53     0          this  Lorg/graalvm/compiler/debug/GlobalMetrics;
            0   53     1       options  Lorg/graalvm/compiler/options/OptionValues;
            1   53     2          vals  [J
            3   36     3           map  Lorg/graalvm/util/EconomicMap<Lorg/graalvm/compiler/debug/MetricKey;Ljava/lang/Long;>;
            4   36     4   metricsFile  Ljava/lang/String;
            8   36     5           csv  Z
           12   30     8             p  Ljava/io/PrintStream;
           16   28     9     csvFormat  Ljava/lang/String;
           17   28    10             e  Lorg/graalvm/util/MapCursor<Lorg/graalvm/compiler/debug/MetricKey;Ljava/lang/Long;>;
           19   24    11           key  Lorg/graalvm/compiler/debug/MetricKey;
           21   22    12  valueAndUnit  Lorg/graalvm/util/Pair<Ljava/lang/String;Ljava/lang/String;>;
           35   36     6             e  Ljava/io/IOException;
           38   52     3             p  Ljava/io/PrintStream;
           40   52     4          keys  Ljava/util/List<Lorg/graalvm/compiler/debug/MetricKey;>;
           43   50     5           key  Lorg/graalvm/compiler/debug/MetricKey;
           44   50     7          name  Ljava/lang/String;
           46   50     8           doc  Ljava/lang/String;
      Exception table:
        from    to  target  type
          12    28      29  any
           9    31      31  any
           8    34      34  Class java.io.IOException
    MethodParameters:
         Name  Flags
      options  
}
SourceFile: "GlobalMetrics.java"
InnerClasses:
  public final Escape = org.graalvm.compiler.debug.CSVUtil$Escape of org.graalvm.compiler.debug.CSVUtil