build: enable Perfetto by default - #65794
Conversation
|
Review requested:
|
This comment was marked as resolved.
This comment was marked as resolved.
|
@aduh95, I'll look into Windows failures. |
|
This is what got it to compile for me locally. In short, it was a configuration problem(s), so gyp changes resolved it all. DetailsFrom f31ec1fc602e9711756d9ca1d7ae386221e14662 Mon Sep 17 00:00:00 2001
From: StefanStojanovic <stefan.stojanovic@janeasystems.com>
Date: Wed, 9 Sep 2026 08:24:06 +0200
Subject: [PATCH] build,win: fix Perfetto
Signed-off-by: StefanStojanovic <stefan.stojanovic@janeasystems.com>
---
deps/perfetto/perfetto.gyp | 8 ++++++++
node.gypi | 5 +++++
tools/v8_gypfiles/v8.gyp | 6 +++++-
3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/deps/perfetto/perfetto.gyp b/deps/perfetto/perfetto.gyp
index 083d0b386dd..697256401a3 100644
--- a/deps/perfetto/perfetto.gyp
+++ b/deps/perfetto/perfetto.gyp
@@ -18,6 +18,14 @@
'sources': [
'<@(perfetto_sdk_sources)',
],
+ 'conditions': [
+ ['OS=="win"', {
+ 'defines': [
+ 'WIN32_LEAN_AND_MEAN',
+ 'NOMINMAX',
+ ],
+ }],
+ ],
},
]
}
diff --git a/node.gypi b/node.gypi
index 104e884e661..1ca77fa3fee 100644
--- a/node.gypi
+++ b/node.gypi
@@ -93,6 +93,11 @@
[ 'OS=="linux" and target_arch=="s390x"', {
'cflags': [ '-march=z14' ],
}],
+ [ 'v8_use_perfetto==1', {
+ 'dependencies': [
+ 'deps/perfetto/perfetto.gyp:perfetto_sdk',
+ ],
+ }],
[ 'node_enable_d8=="true"', {
'dependencies': [ 'tools/v8_gypfiles/d8.gyp:d8' ],
}],
diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp
index a976148ddab..2b1ee51c8f1 100644
--- a/tools/v8_gypfiles/v8.gyp
+++ b/tools/v8_gypfiles/v8.gyp
@@ -1758,7 +1758,11 @@
}],
['v8_use_perfetto==1', {
'sources!': [
- '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_libplatform.*?v8_use_perfetto.*?sources \\-= ")',
+ '<(V8_ROOT)/src/libplatform/tracing/trace-buffer.cc',
+ '<(V8_ROOT)/src/libplatform/tracing/trace-buffer.h',
+ '<(V8_ROOT)/src/libplatform/tracing/trace-writer.cc',
+ '<(V8_ROOT)/src/libplatform/tracing/trace-writer.h',
+ '<(V8_ROOT)/src/tracing/trace-event-no-perfetto.h',
],
'sources': [
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_libplatform.*?v8_use_perfetto.*?sources \\+= ")',
--
2.45.2.windows.1
|
This comment was marked as outdated.
This comment was marked as outdated.
|
@nodejs/platform-aix Build failure: |
I think the actual error is this: Same failure is seen on SmartOS. |
|
doh! |
|
How should we proceed? Force |
|
good question. I think as long as the observable behavior with trace events is still the same either way, forcing |
Signed-off-by: StefanStojanovic <stefan.stojanovic@janeasystems.com>
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
except on incompatible platforms
8e59ba9 to
53d853b
Compare
Refs: nodejs/diagnostics#654