Skip to content

Commit a0a3168

Browse files
committed
Output typestate result statistics.
1 parent fe7663c commit a0a3168

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/analysis/StreamStateMachine.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,9 @@ public void start(Set<Stream> streamSet, EclipseProjectAnalysisEngine<InstanceKe
962962
throw new RuntimeException("Exception caught during typestate analysis.", e);
963963
}
964964

965+
// typestate statistics.
966+
outputTypeStateStatistics(result);
967+
965968
// for each instance in the typestate analysis result.
966969
for (Iterator<InstanceKey> iterator = result.iterateInstances(); iterator.hasNext();) {
967970
// get the instance's key.
@@ -1221,4 +1224,10 @@ public void start(Set<Stream> streamSet, EclipseProjectAnalysisEngine<InstanceKe
12211224
}
12221225
}
12231226
}
1227+
1228+
private static void outputTypeStateStatistics(AggregateSolverResult result) {
1229+
LOGGER.info("Total instances: " + result.totalInstancesNum());
1230+
LOGGER.info("Processed instances: " + result.processedInstancesNum());
1231+
LOGGER.info("Skipped instances: " + result.skippedInstances());
1232+
}
12241233
}

0 commit comments

Comments
 (0)