fix: Node.js cpu and heap profiling (#24528)
* fix: Node.js cpu and heap profiling * chore: emable more now-working Node.js specs
This commit is contained in:
parent
e002f7315d
commit
990a6f8b6c
2 changed files with 3 additions and 19 deletions
|
@ -58,13 +58,7 @@
|
|||
"parallel/test-module-version",
|
||||
"parallel/test-openssl-ca-options",
|
||||
"parallel/test-policy-integrity",
|
||||
"parallel/test-preload",
|
||||
"parallel/test-preload-print-process-argv",
|
||||
"parallel/test-process-env-allowed-flags-are-documented",
|
||||
"parallel/test-process-env-sideeffects",
|
||||
"parallel/test-process-exception-capture",
|
||||
"parallel/test-process-exception-capture-should-abort-on-uncaught",
|
||||
"parallel/test-process-exception-capture-should-abort-on-uncaught-setflagsfromstring",
|
||||
"parallel/test-process-external-stdio-close",
|
||||
"parallel/test-process-external-stdio-close-spawn",
|
||||
"parallel/test-process-versions",
|
||||
|
@ -174,19 +168,6 @@
|
|||
"report/test-report-worker",
|
||||
"report/test-report-uv-handles",
|
||||
"report/test-report-fatal-error",
|
||||
"sequential/test-cpu-prof-default",
|
||||
"sequential/test-cpu-prof-dir-absolute",
|
||||
"sequential/test-cpu-prof-dir-and-name",
|
||||
"sequential/test-cpu-prof-dir-relative",
|
||||
"sequential/test-cpu-prof-dir-worker",
|
||||
"sequential/test-cpu-prof-drained",
|
||||
"sequential/test-cpu-prof-exit",
|
||||
"sequential/test-cpu-prof-kill",
|
||||
"sequential/test-cpu-prof-name",
|
||||
"sequential/test-cpu-prof-worker-argv",
|
||||
"sequential/test-heap-prof",
|
||||
"sequential/test-heapdump",
|
||||
"sequential/test-heapdump-flag",
|
||||
"sequential/test-inspector-contexts",
|
||||
"sequential/test-inspector-port-zero",
|
||||
"sequential/test-inspector-resource-name-to-url",
|
||||
|
|
|
@ -36,6 +36,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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue