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

Unified Diff: runtime/vm/object.cc

Issue 1352483002: Add benchmark output to compiler stats. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: mmmmmmerge Created 5 years, 3 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 | « runtime/vm/isolate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index d95e73d1ab4fde2156e11c45950f869317bcfc1b..c59a16182527e8c90e73e474e2277837d26f3023 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -8584,9 +8584,9 @@ void Script::Tokenize(const String& private_key) const {
CSTAT_TIMER_SCOPE(thread, scanner_timer);
const String& src = String::Handle(zone, Source());
Scanner scanner(src, private_key);
- set_tokens(TokenStream::Handle(zone,
- TokenStream::New(scanner.GetStream(),
- private_key)));
+ const Scanner::GrowableTokenStream& ts = scanner.GetStream();
+ INC_STAT(thread, num_tokens_scanned, ts.length());
+ set_tokens(TokenStream::Handle(zone, TokenStream::New(ts, private_key)));
INC_STAT(thread, src_length, src.Length());
}
« no previous file with comments | « runtime/vm/isolate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698