public class com.codahale.metrics.jvm.GarbageCollectorMetricSet implements com.codahale.metrics.MetricSet
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.codahale.metrics.jvm.GarbageCollectorMetricSet
super_class: java.lang.Object
{
private static final java.util.regex.Pattern WHITESPACE;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.List<java.lang.management.GarbageCollectorMXBean> garbageCollectors;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/management/GarbageCollectorMXBean;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "[\\s]+"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic com.codahale.metrics.jvm.GarbageCollectorMetricSet.WHITESPACE:Ljava/util/regex/Pattern;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.lang.management.ManagementFactory.getGarbageCollectorMXBeans:()Ljava/util/List;
invokespecial com.codahale.metrics.jvm.GarbageCollectorMetricSet.<init>:(Ljava/util/Collection;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/jvm/GarbageCollectorMetricSet;
public void <init>(java.util.Collection<java.lang.management.GarbageCollectorMXBean>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
aload 1
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
putfield com.codahale.metrics.jvm.GarbageCollectorMetricSet.garbageCollectors:Ljava/util/List;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/codahale/metrics/jvm/GarbageCollectorMetricSet;
0 3 1 garbageCollectors Ljava/util/Collection<Ljava/lang/management/GarbageCollectorMXBean;>;
Signature: (Ljava/util/Collection<Ljava/lang/management/GarbageCollectorMXBean;>;)V
MethodParameters:
Name Flags
garbageCollectors
public java.util.Map<java.lang.String, com.codahale.metrics.Metric> getMetrics();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=1
start local 0 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 1: aload 0
getfield com.codahale.metrics.jvm.GarbageCollectorMetricSet.garbageCollectors:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: com.codahale.metrics.jvm.GarbageCollectorMetricSet java.util.Map top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.management.GarbageCollectorMXBean
astore 2
start local 2 3: getstatic com.codahale.metrics.jvm.GarbageCollectorMetricSet.WHITESPACE:Ljava/util/regex/Pattern;
aload 2
invokeinterface java.lang.management.GarbageCollectorMXBean.getName:()Ljava/lang/String;
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
ldc "-"
invokevirtual java.util.regex.Matcher.replaceAll:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 4: aload 1
aload 4
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "count"
aastore
invokestatic com.codahale.metrics.MetricRegistry.name:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
aload 2
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic getValue(Ljava/lang/management/GarbageCollectorMXBean;)Lcom/codahale/metrics/Gauge;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
java/lang/management/GarbageCollectorMXBean.getCollectionCount()J (9 itf)
()Ljava/lang/Long;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 1
aload 4
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "time"
aastore
invokestatic com.codahale.metrics.MetricRegistry.name:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
aload 2
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic getValue(Ljava/lang/management/GarbageCollectorMXBean;)Lcom/codahale/metrics/Gauge;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
java/lang/management/GarbageCollectorMXBean.getCollectionTime()J (9 itf)
()Ljava/lang/Long;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 end local 2 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: aload 1
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/codahale/metrics/jvm/GarbageCollectorMetricSet;
1 8 1 gauges Ljava/util/Map<Ljava/lang/String;Lcom/codahale/metrics/Metric;>;
3 6 2 gc Ljava/lang/management/GarbageCollectorMXBean;
4 6 4 name Ljava/lang/String;
Signature: ()Ljava/util/Map<Ljava/lang/String;Lcom/codahale/metrics/Metric;>;
}
SourceFile: "GarbageCollectorMetricSet.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles