public class NativeStats extends Object
StatsInterface si = MyFooStatsInterface.INSTANCE; NativeStats stats = new NativeStats(si); ... // your code stats.diff().dump(System.out);
stats.snapshot().dump(System.out);
Modifier and Type | Class and Description |
---|---|
static class |
NativeStats.NativeFunction |
static interface |
NativeStats.StatsInterface |
Constructor and Description |
---|
NativeStats(Collection<NativeStats.StatsInterface> classes) |
NativeStats(NativeStats.StatsInterface... classes) |
Modifier and Type | Method and Description |
---|---|
NativeStats |
copy() |
NativeStats |
diff() |
void |
dump(PrintStream ps)
Dumps the stats to the print stream in a JSON format.
|
void |
reset() |
NativeStats |
snapshot() |
void |
update() |
public NativeStats(NativeStats.StatsInterface... classes)
public NativeStats(Collection<NativeStats.StatsInterface> classes)
public void reset()
public void update()
public NativeStats snapshot()
public NativeStats copy()
public NativeStats diff()
public void dump(PrintStream ps)
ps
- Copyright © 2009–2019 FuseSource, Corp.. All rights reserved.