Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(404)

Unified Diff: pkg/analyzer/lib/src/services/lint.dart

Issue 918383002: Rework analysis server performance measurement code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/utilities_general.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/utilities_general.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698