public class Statistics extends ListenerAdapter implements Cloneable
Modifier and Type | Field and Description |
---|---|
long |
backtracked |
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 |
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, objectLocked, objectNotify, objectNotifyAll, objectUnlocked, objectWait, propertyViolated, publishConstraintHit, publishFinished, publishPropertyViolation, publishStart, publishTransition, searchFinished, searchStarted, statePurged, stateStored, threadBlocked, threadInterrupted, threadNotified, threadScheduled, threadStarted, threadTerminated, threadWaiting, vmInitialized
public 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 dataCGs
public long nNewObjects
public long nReleasedObjects
public int maxLiveObjects
public Statistics clone()
public void gcBegin(VM vm)
gcBegin
in interface VMListener
gcBegin
in class ListenerAdapter
public void instructionExecuted(VM vm, ThreadInfo ti, Instruction nextInsn, Instruction executedInsn)
VMListener
instructionExecuted
in interface VMListener
instructionExecuted
in class ListenerAdapter
public void choiceGeneratorSet(VM vm, ChoiceGenerator<?> newCG)
VMListener
choiceGeneratorSet
in interface VMListener
choiceGeneratorSet
in class ListenerAdapter
public void objectCreated(VM vm, ThreadInfo ti, ElementInfo ei)
VMListener
objectCreated
in interface VMListener
objectCreated
in class ListenerAdapter
public void objectReleased(VM vm, ThreadInfo ti, ElementInfo ei)
VMListener
objectReleased
in interface VMListener
objectReleased
in class ListenerAdapter
public void stateAdvanced(Search search)
SearchListener
stateAdvanced
in interface SearchListener
stateAdvanced
in class ListenerAdapter
public void stateBacktracked(Search search)
SearchListener
stateBacktracked
in interface SearchListener
stateBacktracked
in class ListenerAdapter
public void stateProcessed(Search search)
SearchListener
stateProcessed
in interface SearchListener
stateProcessed
in class ListenerAdapter
public void stateRestored(Search search)
SearchListener
stateRestored
in interface SearchListener
stateRestored
in class ListenerAdapter
public void searchConstraintHit(Search search)
SearchListener
searchConstraintHit
in interface SearchListener
searchConstraintHit
in class ListenerAdapter