Revision: 10060 Author: [email protected] Date: Thu Nov 24 05:24:30 2011 Log: Add histogram timer scope for preparsing.
Currently the parser benchmark doesn't count preparsing, since it doesn't know when it's preparsing. Review URL: http://codereview.chromium.org/8692001 http://code.google.com/p/v8/source/detail?r=10060 Modified: /branches/bleeding_edge/src/parser.cc ======================================= --- /branches/bleeding_edge/src/parser.cc Tue Nov 15 05:48:40 2011 +++ /branches/bleeding_edge/src/parser.cc Thu Nov 24 05:24:30 2011 @@ -5353,6 +5353,7 @@ 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
