public class io.vertx.ext.dropwizard.impl.InstantThroughput
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.dropwizard.impl.InstantThroughput
super_class: java.lang.Object
{
static final long ONE_SEC;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final long TWO_SECS;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
private volatile long prevCount;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile long timestamp;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile long count;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
lconst_1
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
putstatic io.vertx.ext.dropwizard.impl.InstantThroughput.ONE_SEC:J
1: getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
ldc 2
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
putstatic io.vertx.ext.dropwizard.impl.InstantThroughput.TWO_SECS:J
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc -1
putfield io.vertx.ext.dropwizard.impl.InstantThroughput.prevCount:J
2: aload 0
lconst_0
putfield io.vertx.ext.dropwizard.impl.InstantThroughput.timestamp:J
3: aload 0
lconst_0
putfield io.vertx.ext.dropwizard.impl.InstantThroughput.count:J
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/ext/dropwizard/impl/InstantThroughput;
void check();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=1
start local 0 0: invokestatic java.lang.System.nanoTime:()J
lstore 1
start local 1 1: lload 1
aload 0
getfield io.vertx.ext.dropwizard.impl.InstantThroughput.timestamp:J
lsub
getstatic io.vertx.ext.dropwizard.impl.InstantThroughput.ONE_SEC:J
lcmp
ifle 9
2: lload 1
aload 0
getfield io.vertx.ext.dropwizard.impl.InstantThroughput.timestamp:J
lsub
getstatic io.vertx.ext.dropwizard.impl.InstantThroughput.TWO_SECS:J
lcmp
ifge 5
3: aload 0
aload 0
getfield io.vertx.ext.dropwizard.impl.InstantThroughput.count:J
putfield io.vertx.ext.dropwizard.impl.InstantThroughput.prevCount:J
4: goto 7
5: StackMap locals: long
StackMap stack:
aload 0
getfield io.vertx.ext.dropwizard.impl.InstantThroughput.prevCount:J
lconst_0
lcmp
ifle 7
6: aload 0
lconst_0
putfield io.vertx.ext.dropwizard.impl.InstantThroughput.prevCount:J
7: StackMap locals:
StackMap stack:
aload 0
lload 1
putfield io.vertx.ext.dropwizard.impl.InstantThroughput.timestamp:J
8: aload 0
lconst_0
putfield io.vertx.ext.dropwizard.impl.InstantThroughput.count:J
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/vertx/ext/dropwizard/impl/InstantThroughput;
1 10 1 now J
public void mark();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.vertx.ext.dropwizard.impl.InstantThroughput.check:()V
1: aload 0
dup
getfield io.vertx.ext.dropwizard.impl.InstantThroughput.count:J
lconst_1
ladd
putfield io.vertx.ext.dropwizard.impl.InstantThroughput.count:J
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/dropwizard/impl/InstantThroughput;
public long count();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.vertx.ext.dropwizard.impl.InstantThroughput.check:()V
1: aload 0
getfield io.vertx.ext.dropwizard.impl.InstantThroughput.prevCount:J
ldc -1
lcmp
ifeq 2
aload 0
getfield io.vertx.ext.dropwizard.impl.InstantThroughput.prevCount:J
goto 3
StackMap locals:
StackMap stack:
2: aload 0
getfield io.vertx.ext.dropwizard.impl.InstantThroughput.count:J
StackMap locals:
StackMap stack: long
3: lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/dropwizard/impl/InstantThroughput;
}
SourceFile: "InstantThroughput.java"