public class org.jruby.management.ParserStats implements org.jruby.management.ParserStatsMBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.management.ParserStats
super_class: java.lang.Object
{
private final java.lang.ref.SoftReference<org.jruby.Ruby> ruby;
descriptor: Ljava/lang/ref/SoftReference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ref/SoftReference<Lorg/jruby/Ruby;>;
private java.util.concurrent.atomic.AtomicInteger totalParseTime;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0002) ACC_PRIVATE
private java.util.concurrent.atomic.AtomicLong totalParsedBytes;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0002) ACC_PRIVATE
private java.util.concurrent.atomic.AtomicInteger totalEvalParses;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0002) ACC_PRIVATE
private java.util.concurrent.atomic.AtomicInteger totalLoadParses;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0002) ACC_PRIVATE
private java.util.concurrent.atomic.AtomicInteger totalJRubyModuleParses;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0002) ACC_PRIVATE
public void <init>(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, 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.concurrent.atomic.AtomicInteger
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield org.jruby.management.ParserStats.totalParseTime:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
new java.util.concurrent.atomic.AtomicLong
dup
lconst_0
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:(J)V
putfield org.jruby.management.ParserStats.totalParsedBytes:Ljava/util/concurrent/atomic/AtomicLong;
3: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield org.jruby.management.ParserStats.totalEvalParses:Ljava/util/concurrent/atomic/AtomicInteger;
4: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield org.jruby.management.ParserStats.totalLoadParses:Ljava/util/concurrent/atomic/AtomicInteger;
5: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield org.jruby.management.ParserStats.totalJRubyModuleParses:Ljava/util/concurrent/atomic/AtomicInteger;
6: aload 0
new java.lang.ref.SoftReference
dup
aload 1
invokespecial java.lang.ref.SoftReference.<init>:(Ljava/lang/Object;)V
putfield org.jruby.management.ParserStats.ruby:Ljava/lang/ref/SoftReference;
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/management/ParserStats;
0 8 1 ruby Lorg/jruby/Ruby;
MethodParameters:
Name Flags
ruby
public void addParseTime(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.management.ParserStats.totalParseTime:Ljava/util/concurrent/atomic/AtomicInteger;
iload 1
invokevirtual java.util.concurrent.atomic.AtomicInteger.addAndGet:(I)I
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/management/ParserStats;
0 2 1 time I
MethodParameters:
Name Flags
time
public void addParsedBytes(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.management.ParserStats.totalParsedBytes:Ljava/util/concurrent/atomic/AtomicLong;
iload 1
i2l
invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
pop2
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/management/ParserStats;
0 2 1 bytes I
MethodParameters:
Name Flags
bytes
public void addEvalParse();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.management.ParserStats.totalEvalParses:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/management/ParserStats;
public void addLoadParse();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.management.ParserStats.totalLoadParses:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/management/ParserStats;
public void addJRubyModuleParse();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.management.ParserStats.totalJRubyModuleParses:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/management/ParserStats;
public double getTotalParseTime();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.management.ParserStats.ruby:Ljava/lang/ref/SoftReference;
invokevirtual java.lang.ref.SoftReference.get:()Ljava/lang/Object;
checkcast org.jruby.Ruby
astore 1
start local 1 1: aload 1
ifnonnull 2
dconst_0
dreturn
2: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 1
invokevirtual org.jruby.Ruby.getParser:()Lorg/jruby/parser/Parser;
invokevirtual org.jruby.parser.Parser.getTotalTime:()J
l2d
ldc 1.0E9
ddiv
dreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/management/ParserStats;
1 3 1 runtime Lorg/jruby/Ruby;
public long getTotalParsedBytes();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.management.ParserStats.ruby:Ljava/lang/ref/SoftReference;
invokevirtual java.lang.ref.SoftReference.get:()Ljava/lang/Object;
checkcast org.jruby.Ruby
astore 1
start local 1 1: aload 1
ifnonnull 2
lconst_0
lreturn
2: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 1
invokevirtual org.jruby.Ruby.getParser:()Lorg/jruby/parser/Parser;
invokevirtual org.jruby.parser.Parser.getTotalBytes:()I
i2l
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/management/ParserStats;
1 3 1 runtime Lorg/jruby/Ruby;
public double getParseTimePerKB();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.management.ParserStats.getTotalParsedBytes:()J
lstore 1
start local 1 1: lload 1
lconst_0
lcmp
ifne 2
dconst_0
dreturn
2: StackMap locals: long
StackMap stack:
aload 0
invokevirtual org.jruby.management.ParserStats.getTotalParseTime:()D
lload 1
l2d
ldc 1000.0
ddiv
ddiv
dreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/management/ParserStats;
1 3 1 totalBytes J
public int getNumberOfEvalParses();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.management.ParserStats.totalEvalParses:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/management/ParserStats;
public int getNumberOfLoadParses();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.management.ParserStats.totalLoadParses:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/management/ParserStats;
}
SourceFile: "ParserStats.java"