From 9b5cba9104dd4203ed0eac1153a708803cbb677b Mon Sep 17 00:00:00 2001 From: Matheus Marchini Date: Mon, 18 Jun 2018 09:47:52 -0700 Subject: deps: cherry-pick 5dd3395 from upstream V8 Original commit message: [log] improve --perf-basic-prof-only-functions Change --perf-basic-prof-only-functions to also log builtin code creation events, otherwise InterpretedFunctions generated by --interpreted-frames-native-stack will be filtered out. R=yangguo@google.com Change-Id: Ib0623fca88e25c514473a43de56ebbbdcb146f97 Reviewed-on: https://chromium-review.googlesource.com/1100014 Reviewed-by: Yang Guo Commit-Queue: Yang Guo Cr-Commit-Position: refs/heads/master@{#53760} Refs: https://github.com/v8/v8/commit/5dd33955d5cb1d84dd2509363e11d3c2a PR-URL: https://github.com/nodejs/node/pull/21386 Reviewed-By: Yang Guo Reviewed-By: Gus Caplan Reviewed-By: James M Snell --- deps/v8/src/log.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'deps') diff --git a/deps/v8/src/log.cc b/deps/v8/src/log.cc index 953216aef7..f5e1fe6baf 100644 --- a/deps/v8/src/log.cc +++ b/deps/v8/src/log.cc @@ -305,6 +305,7 @@ void PerfBasicLogger::LogRecordedBuffer(AbstractCode* code, SharedFunctionInfo*, const char* name, int length) { if (FLAG_perf_basic_prof_only_functions && (code->kind() != AbstractCode::INTERPRETED_FUNCTION && + code->kind() != AbstractCode::BUILTIN && code->kind() != AbstractCode::OPTIMIZED_FUNCTION)) { return; } -- cgit v1.2.1