|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.realtime.Stats
Stats
keeps track of Runtime statistics of how many
objects are created, access checks done from which MemoryArea to
which MemoryArea, etc. Stats.print() allows you to print out
this information and must be present right before termination of
any program which you want to collect these statistics from.
Field Summary | |
private static long |
accessChecks
Count how many access checks are done in total. |
static long |
CALL_CHECKS
How many checks on CALL returns were there? |
static long |
CALL_REFS
How many CALL's returned something that pointed to the heap? |
static long |
COLLECT_HEAP_STATS
Should we still be collecting heap reference statistics? |
private static long |
HEAP_TO_HEAP
How many HeapMemory -> HeapMemory assignments? |
private static long |
HEAP_TO_IMMORTAL
How many HeapMemory -> ImmortalMemory assignments? |
private static long |
HEAP_TO_SCOPE
How many HeapMemory -> ScopedMemory assignments? |
static long |
heapChecks
How many checks to the heap were there? |
static long |
heapRefs
How many pointers to the heap were dereferenced? |
private static long |
IMMORTAL_TO_HEAP
How many ImmortalMemory -> HeapMemory assignments? |
private static long |
IMMORTAL_TO_IMMORTAL
How many ImmortalMemory -> ImmortalMemory assignments? |
private static long |
IMMORTAL_TO_SCOPE
How many ImmortalMemory -> ScopedMemory assignments? |
static long |
METHOD_CHECKS
How many checks on METHOD calls were there? |
static long |
METHOD_REFS
How many parameters passed into METHODs were actually pointing to the heap? |
static long |
NATIVECALL_CHECKS
How many checks on NATIVECALL returns were there? |
static long |
NATIVECALL_REFS
How many NATIVECALL's returned something that pointed to the heap? |
private static long |
NEW_ARRAY_HEAP
How many array objects were allocated out of HeapMemory? |
private static long |
NEW_ARRAY_IMMORTAL
How many array objects were allocated out of ImmortalMemory? |
private static long |
NEW_ARRAY_SCOPE
How many array objects were allocated out of ScopedMemory? |
private static long |
NEW_HEAP
How many objects were allocated out of HeapMemory? |
private static long |
NEW_IMMORTAL
How many objects were allocated out of ImmortalMemory? |
private static long |
NEW_SCOPE
How many objects were allocated out of ScopedMemory? |
private static long |
newArrayObjects
Count how many array objects are created. |
private static long |
newObjects
Count how many new objects are created. |
static long |
READ_CHECKS
How many checks on READ of a base pointer were there? |
static long |
READ_REFS
How many base pointers on READ were actually pointing to the heap? |
private static long |
SCOPE_TO_HEAP
How many ScopedMemory -> HeapMemory assignments? |
private static long |
SCOPE_TO_IMMORTAL
How many ScopedMemory -> ImmortalMemory assignments? |
private static long |
SCOPE_TO_SCOPE
How many ScopedMemory -> ScopedMemory assignments? |
private static boolean |
touched
If not, it's possible that the user did not compile with the _STATS compiler option to add Runtime statistics to the compiled output. |
static long |
WRITE_CHECKS
How many checks on WRITE to a location were there? |
static long |
WRITE_REFS
How many checks on WRITE to a location previously pointing to the heap? |
Constructor Summary | |
Stats()
|
Method Summary | |
static void |
addCheck(javax.realtime.MemoryArea from,
javax.realtime.MemoryArea to)
Add an access check from one MemoryArea to another MemoryArea. |
static void |
addNewArrayObject(javax.realtime.MemoryArea to)
Add a new array object to the statistics for that MemoryArea. |
static void |
addNewObject(javax.realtime.MemoryArea to)
Add a new object to the statistics for that MemoryArea. |
static void |
print()
Print out the statistics for this program. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static long accessChecks
private static long newObjects
private static long newArrayObjects
private static long HEAP_TO_HEAP
private static long HEAP_TO_SCOPE
private static long HEAP_TO_IMMORTAL
private static long SCOPE_TO_HEAP
private static long SCOPE_TO_SCOPE
private static long SCOPE_TO_IMMORTAL
private static long IMMORTAL_TO_HEAP
private static long IMMORTAL_TO_SCOPE
private static long IMMORTAL_TO_IMMORTAL
private static long NEW_HEAP
private static long NEW_SCOPE
private static long NEW_IMMORTAL
private static long NEW_ARRAY_HEAP
private static long NEW_ARRAY_SCOPE
private static long NEW_ARRAY_IMMORTAL
public static long heapChecks
public static long heapRefs
public static long READ_CHECKS
public static long READ_REFS
public static long WRITE_CHECKS
public static long WRITE_REFS
public static long NATIVECALL_CHECKS
public static long NATIVECALL_REFS
public static long CALL_CHECKS
public static long CALL_REFS
public static long METHOD_CHECKS
public static long METHOD_REFS
public static long COLLECT_HEAP_STATS
private static boolean touched
Constructor Detail |
public Stats()
Method Detail |
public static final void addCheck(javax.realtime.MemoryArea from, javax.realtime.MemoryArea to)
public static final void addNewObject(javax.realtime.MemoryArea to)
public static final void addNewArrayObject(javax.realtime.MemoryArea to)
public static final void print()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |