From c0e6c6a673d4e8400315c1d5de5b6b9181d39de6 Mon Sep 17 00:00:00 2001 From: Yang Guo Date: Fri, 9 Nov 2018 15:19:27 +0100 Subject: [PATCH] src: enable detailed source positions in V8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Joyee Cheung Reviewed-By: Peter Marshall Reviewed-By: James M Snell Reviewed-By: Refael Ackermann --- src/node.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node.cc b/src/node.cc index 20aafe6a050e20..425c1f875dd983 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; }