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

Unified Diff: pkg/analyzer/lib/src/generated/scanner.dart

Issue 784623004: Remove old instrumentation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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/resolver.dart ('k') | pkg/analyzer/lib/src/generated/source_io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/scanner.dart
diff --git a/pkg/analyzer/lib/src/generated/scanner.dart b/pkg/analyzer/lib/src/generated/scanner.dart
index 893ab3958811daeba4c5d24932243d833de3e138..436a5bbe1c5ce54693aa9a85abd126c54574ff69 100644
--- a/pkg/analyzer/lib/src/generated/scanner.dart
+++ b/pkg/analyzer/lib/src/generated/scanner.dart
@@ -7,7 +7,6 @@ library engine.scanner;
import 'dart:collection';
import 'error.dart';
-import 'instrumentation.dart';
import 'java_engine.dart';
import 'source.dart';
@@ -973,22 +972,12 @@ class Scanner {
* and return the first token in the list of tokens that were produced.
*/
Token tokenize() {
- InstrumentationBuilder instrumentation =
- Instrumentation.builder2("dart.engine.AbstractScanner.tokenize");
- int tokenCounter = 0;
- try {
- int next = _reader.advance();
- while (next != -1) {
- tokenCounter++;
- next = bigSwitch(next);
- }
- _appendEofToken();
- instrumentation.metric2("tokensCount", tokenCounter);
- return firstToken;
- } finally {
- instrumentation.log2(2);
- //Log if over 1ms
+ int next = _reader.advance();
+ while (next != -1) {
+ next = bigSwitch(next);
}
+ _appendEofToken();
+ return firstToken;
}
void _appendBeginToken(TokenType type) {
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | pkg/analyzer/lib/src/generated/source_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698