From 1d3f45e3befe8799de8550dc3abe9b68f4d4ba2a 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 PR-URL: https://github.com/nodejs/node/pull/24274 Reviewed-By: Gus Caplan Reviewed-By: James M Snell Reviewed-By: Peter Marshall Reviewed-By: Ali Ijaz Sheikh Reviewed-By: Matheus Marchini Reviewed-By: Colin Ihrig Reviewed-By: Refael Ackermann Reviewed-By: Ruben Bridgewater --- src/node.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node.cc b/src/node.cc index bfc50983911f2d..d4272bea20144d 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2593,6 +2593,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; }