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 |
|---|---|
| public static class | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final HashMap |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public NativeStats | |
| public NativeStats | |
| public void | |
| public void | |
| public NativeStats | |
| private static HashMap | |
| public void |
| snapshot | back to summary |
|---|---|
| private final HashMap<NativeStats. | |
| NativeStats | back to summary |
|---|---|
| public NativeStats(NativeStats. | |
| NativeStats | back to summary |
|---|---|
| public NativeStats(Collection<NativeStats. | |
| NativeStats | back to summary |
|---|---|
| private NativeStats(HashMap<NativeStats. | |
| copy | back to summary |
|---|---|
| public NativeStats copy() | |
| diff | back to summary |
|---|---|
| public NativeStats diff() | |
| dump | back to summary |
|---|---|
| public void dump(PrintStream ps) Dumps the stats to the print stream in a JSON format.
| |
| reset | back to summary |
|---|---|
| public void reset() | |
| snapshot | back to summary |
|---|---|
| public NativeStats snapshot() | |
| snapshot | back to summary |
|---|---|
| private static HashMap | |
| update | back to summary |
|---|---|
| public void update() | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final String | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(NativeStats.
the object to be compared. funcImplements java. |
| public NativeStats. | |
| public int | |
| public String | |
| public int | |
| public void | |
| public void | |
| pack-priv void |
| counter | back to summary |
|---|---|
| private int counter | |
| name | back to summary |
|---|---|
| private final String name | |
| ordinal | back to summary |
|---|---|
| private final int ordinal | |
| NativeFunction | back to summary |
|---|---|
| public NativeFunction(int ordinal, String name, int callCount) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(NativeStats. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| copy | back to summary |
|---|---|
| public NativeStats. | |
| getCounter | back to summary |
|---|---|
| public int getCounter() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getOrdinal | back to summary |
|---|---|
| public int getOrdinal() | |
| reset | back to summary |
|---|---|
| public void reset() | |
| setCounter | back to summary |
|---|---|
| public void setCounter(int counter) | |
| subtract | back to summary |
|---|---|
| pack-priv void subtract(NativeStats. | |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public String | |
| public String |
| functionCount | back to summary |
|---|---|
| public int functionCount() | |
| functionCounter | back to summary |
|---|---|
| public int functionCounter(int ordinal) | |
| functionName | back to summary |
|---|---|
| public String functionName(int ordinal) | |
| getNativeClass | back to summary |
|---|---|
| public String getNativeClass() | |