Browse Source

fix: Node.js cpu and heap profiling (#24542)

* fix: Node.js cpu and heap profiling

* fix: Node.js cpu and heap profiling

* chore: enable more now-working Node.js specs

* Replace disabled tests
Shelley Vohr 4 years ago
parent
commit
f3df14c7ae
1 changed files with 3 additions and 0 deletions
  1. 3 0
      shell/browser/node_debugger.cc

+ 3 - 0
shell/browser/node_debugger.cc

@@ -57,6 +57,9 @@ void NodeDebugger::Start() {
                        true /* is_main */))
     DCHECK(inspector->IsListening());
 
+  v8::HandleScope handle_scope(env_->isolate());
+  node::profiler::StartProfilers(env_);
+
   if (inspector->options().break_node_first_line) {
     inspector->PauseOnNextJavascriptStatement("Break at bootstrap");
   }