Reviewers: Erik Corry,
Description:
Add histogram timer scope for preparsing.
Currently the parser benchmark doesn't count preparsing, since it doesn't
know when it's preparsing.
Please review this at http://codereview.chromium.org/8692001/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/parser.cc
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index
e19af1cd5cd3dd265633660544b675246588c17b..0b5673561b4bf27bfcf9adb03a1976af7e29a4d8
100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -5353,6 +5353,7 @@ static ScriptDataImpl*
DoPreParse(UC16CharacterStream* source,
int flags,
ParserRecorder* recorder) {
Isolate* isolate = Isolate::Current();
+ HistogramTimerScope timer(isolate->counters()->pre_parse());
Scanner scanner(isolate->unicode_cache());
scanner.SetHarmonyScoping((flags & kHarmonyScoping) != 0);
scanner.Initialize(source);
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev