summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Guo <yangguo@chromium.org>2018-11-09 15:19:27 +0100
committerAnna Henningsen <anna@addaleax.net>2018-11-23 13:25:25 +0900
commit12b69f976525620dde098339477823b35c69d5cd (patch)
treec38f4ae38e1ec9e3908b79331583b13d9edba1ae /src
parent39db8b11c0a7983d11ffbe4ec3c1d30db4da5fd3 (diff)
downloadandroid-node-v8-12b69f976525620dde098339477823b35c69d5cd.tar.gz
android-node-v8-12b69f976525620dde098339477823b35c69d5cd.tar.bz2
android-node-v8-12b69f976525620dde098339477823b35c69d5cd.zip
src: enable detailed source positions in V8
PR-URL: https://github.com/nodejs/node/pull/24515 Refs: https://github.com/nodejs/node/pull/24274 Refs: https://github.com/nodejs/node/pull/24394 Refs: https://github.com/nodejs/node/issues/24393 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Peter Marshall <petermarshall@chromium.org> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/node.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node.cc b/src/node.cc
index 20aafe6a05..425c1f875d 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -2613,6 +2613,7 @@ Isolate* NewIsolate(ArrayBufferAllocator* allocator, uv_loop_t* event_loop) {
isolate->SetMicrotasksPolicy(MicrotasksPolicy::kExplicit);
isolate->SetFatalErrorHandler(OnFatalError);
isolate->SetAllowWasmCodeGenerationCallback(AllowWasmCodeGenerationCallback);
+ v8::CpuProfiler::UseDetailedSourcePositionsForProfiling(isolate);
return isolate;
}