| Index: pkg/analyzer/lib/src/services/lint.dart
|
| diff --git a/pkg/analyzer/lib/src/services/lint.dart b/pkg/analyzer/lib/src/services/lint.dart
|
| index c0edb2c68f25aacf48af950e2c6d449073d4160a..de6a4b4ec81a3b9ddaaae65561c67e51b76bec6f 100644
|
| --- a/pkg/analyzer/lib/src/services/lint.dart
|
| +++ b/pkg/analyzer/lib/src/services/lint.dart
|
| @@ -42,8 +42,7 @@ class LintGenerator {
|
| : _linters = linters != null ? linters : LINTERS;
|
|
|
| void generate() {
|
| - TimeCounter_TimeCounterHandle timeCounter =
|
| - PerformanceStatistics.lint.start();
|
| + PerformanceTag prevTag = PerformanceStatistics.lint.makeCurrent();
|
| try {
|
| _compilationUnits.forEach((cu) {
|
| if (cu.element != null) {
|
| @@ -51,7 +50,7 @@ class LintGenerator {
|
| }
|
| });
|
| } finally {
|
| - timeCounter.stop();
|
| + prevTag.makeCurrent();
|
| }
|
| }
|
|
|
|
|