| Index: pkg/analyzer/lib/task/model.dart
|
| diff --git a/pkg/analyzer/lib/task/model.dart b/pkg/analyzer/lib/task/model.dart
|
| index a00b215214fcb7c687a2fa9e0b366b434844514d..3fd8ddb8fb733eda8c13b8d11bb56bb1bede0a79 100644
|
| --- a/pkg/analyzer/lib/task/model.dart
|
| +++ b/pkg/analyzer/lib/task/model.dart
|
| @@ -49,6 +49,12 @@ abstract class AnalysisTarget {
|
| */
|
| abstract class AnalysisTask {
|
| /**
|
| + * A table mapping the types of analysis tasks to the number of times each
|
| + * kind of task has been performed.
|
| + */
|
| + static final Map<Type, int> countMap = new HashMap<Type, int>();
|
| +
|
| + /**
|
| * A table mapping the types of analysis tasks to stopwatches used to compute
|
| * how much time was spent executing each kind of task.
|
| */
|
| @@ -164,6 +170,8 @@ abstract class AnalysisTask {
|
| */
|
| void _safelyPerform() {
|
| try {
|
| + int count = countMap[runtimeType];
|
| + countMap[runtimeType] = count == null ? 1 : count + 1;
|
| Stopwatch stopwatch = stopwatchMap[runtimeType];
|
| if (stopwatch == null) {
|
| stopwatch = new Stopwatch();
|
|
|