Reviewers: Benedikt Meurer,

Description:
Allow nested compile-script histogram scopes.

[email protected]
BUG=chromium:449959
LOG=N

Please review this at https://codereview.chromium.org/822823003/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+1, -1 lines):
  M src/compiler.cc


Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 544b4dd4595d0a07ec6a23a30bdc062882c5c4bc..5f99cb69ad602426b542036cc39bd35fe0c6d536 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1263,7 +1263,7 @@ Handle<SharedFunctionInfo> Compiler::CompileScript(
     v8::Extension* extension, ScriptData** cached_data,
     ScriptCompiler::CompileOptions compile_options, NativesFlag natives) {
   Isolate* isolate = source->GetIsolate();
-  HistogramTimerScope total(isolate->counters()->compile_script());
+  HistogramTimerScope total(isolate->counters()->compile_script(), true);

   if (compile_options == ScriptCompiler::kNoCompileOptions) {
     cached_data = NULL;


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to