public class Statistics extends ListenerAdapter implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
long |
backtracked |
int |
breakTransitionCGs |
int |
constraints |
int |
dataCGs |
long |
endStates |
int |
gcCycles |
long |
insns |
int |
maxDepth |
int |
maxLiveObjects |
long |
maxUsed |
int |
monitorCGs |
long |
newStates |
long |
nNewObjects |
long |
nReleasedObjects |
int |
processed |
long |
restored |
int |
sharedAccessCGs |
int |
signalCGs |
int |
threadApiCGs |
int |
threadCGs |
long |
visitedStates |
| Constructor and Description |
|---|
Statistics() |
| Modifier and Type | Method and Description |
|---|---|
void |
choiceGeneratorSet(VM vm,
ChoiceGenerator<?> newCG)
a new ChoiceGenerator was set, which means we are at the beginning of a new transition.
|
Statistics |
clone() |
void |
gcBegin(VM vm) |
void |
instructionExecuted(VM vm,
ThreadInfo ti,
Instruction nextInsn,
Instruction executedInsn)
VM has executed the next instruction
(can be used to analyze branches, monitor PUTFIELD / GETFIELD and
INVOKExx / RETURN instructions)
|
void |
objectCreated(VM vm,
ThreadInfo ti,
ElementInfo ei)
new object was created
|
void |
objectReleased(VM vm,
ThreadInfo ti,
ElementInfo ei)
object was garbage collected (after potential finalization)
|
void |
searchConstraintHit(Search search)
there was some contraint hit in the search, we back out
could have been turned into a property, but usually is an attribute of
the search, not the application
|
void |
stateAdvanced(Search search)
got the next state
Note - this will be notified before any potential propertyViolated, in which
case the currentError will be already set
|
void |
stateBacktracked(Search search)
state was backtracked one step
|
void |
stateProcessed(Search search)
state is fully explored
|
void |
stateRestored(Search search)
a previously generated state was restored
(can be on a completely different path)
|
choiceGeneratorAdvanced, choiceGeneratorProcessed, choiceGeneratorRegistered, classLoaded, exceptionBailout, exceptionHandled, exceptionThrown, executeInstruction, gcEnd, loadClass, methodEntered, methodExited, objectExposed, objectLocked, objectNotify, objectNotifyAll, objectShared, objectUnlocked, objectWait, propertyViolated, publishConstraintHit, publishFinished, publishProbe, publishPropertyViolation, publishStart, publishTransition, searchFinished, searchProbed, searchStarted, statePurged, stateStored, threadBlocked, threadInterrupted, threadNotified, threadScheduled, threadStarted, threadTerminated, threadWaiting, vmInitializedpublic long maxUsed
public long newStates
public long backtracked
public long restored
public int processed
public int constraints
public long visitedStates
public long endStates
public int maxDepth
public int gcCycles
public long insns
public int threadCGs
public int sharedAccessCGs
public int monitorCGs
public int signalCGs
public int threadApiCGs
public int breakTransitionCGs
public int dataCGs
public long nNewObjects
public long nReleasedObjects
public int maxLiveObjects
public Statistics clone()
clone in class java.lang.Objectpublic void gcBegin(VM vm)
gcBegin in interface VMListenergcBegin in class ListenerAdapterpublic void instructionExecuted(VM vm, ThreadInfo ti, Instruction nextInsn, Instruction executedInsn)
VMListenerinstructionExecuted in interface VMListenerinstructionExecuted in class ListenerAdapterpublic void choiceGeneratorSet(VM vm, ChoiceGenerator<?> newCG)
VMListenerchoiceGeneratorSet in interface VMListenerchoiceGeneratorSet in class ListenerAdapterpublic void objectCreated(VM vm, ThreadInfo ti, ElementInfo ei)
VMListenerobjectCreated in interface VMListenerobjectCreated in class ListenerAdapterpublic void objectReleased(VM vm, ThreadInfo ti, ElementInfo ei)
VMListenerobjectReleased in interface VMListenerobjectReleased in class ListenerAdapterpublic void stateAdvanced(Search search)
SearchListenerstateAdvanced in interface SearchListenerstateAdvanced in class ListenerAdapterpublic void stateBacktracked(Search search)
SearchListenerstateBacktracked in interface SearchListenerstateBacktracked in class ListenerAdapterpublic void stateProcessed(Search search)
SearchListenerstateProcessed in interface SearchListenerstateProcessed in class ListenerAdapterpublic void stateRestored(Search search)
SearchListenerstateRestored in interface SearchListenerstateRestored in class ListenerAdapterpublic void searchConstraintHit(Search search)
SearchListenersearchConstraintHit in interface SearchListenersearchConstraintHit in class ListenerAdapter