Skip to content

Commit e78670f

Browse files
committed
build: remove broken intel vtune support
Support for VTune profiling was added in commit a881b53 from November 2015 but has since bitrotted. Remove it. Fixes: nodejs#28310 Refs: nodejs#3785
1 parent 492037a commit e78670f

File tree

8 files changed

+0
-86
lines changed

8 files changed

+0
-86
lines changed

configure.py

-16
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,6 @@
131131
help="Generate an executable with libgcc and libstdc++ libraries. This "
132132
"will not work on OSX when using the default compilation environment")
133133

134-
parser.add_option("--enable-vtune-profiling",
135-
action="store_true",
136-
dest="enable_vtune_profiling",
137-
help="Enable profiling support for Intel VTune profiler to profile "
138-
"JavaScript code executed in nodejs. This feature is only available "
139-
"for x32, x86, and x64 architectures.")
140-
141134
parser.add_option("--enable-pgo-generate",
142135
action="store_true",
143136
dest="enable_pgo_generate",
@@ -997,15 +990,6 @@ def configure_node(o):
997990
if flavor == 'aix':
998991
o['variables']['node_target_type'] = 'static_library'
999992

1000-
if target_arch in ('x86', 'x64', 'ia32', 'x32'):
1001-
o['variables']['node_enable_v8_vtunejit'] = b(options.enable_vtune_profiling)
1002-
elif options.enable_vtune_profiling:
1003-
raise Exception(
1004-
'The VTune profiler for JavaScript is only supported on x32, x86, and x64 '
1005-
'architectures.')
1006-
else:
1007-
o['variables']['node_enable_v8_vtunejit'] = 'false'
1008-
1009993
if flavor != 'linux' and (options.enable_pgo_generate or options.enable_pgo_use):
1010994
raise Exception(
1011995
'The pgo option is supported only on linux.')

node.gyp

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
'node_use_openssl%': 'true',
2222
'node_shared_openssl%': 'false',
2323
'node_v8_options%': '',
24-
'node_enable_v8_vtunejit%': 'false',
2524
'node_core_target_name%': 'node',
2625
'node_lib_target_name%': 'libnode',
2726
'node_intermediate_lib_type%': 'static_library',

node.gypi

-8
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,6 @@
105105
'defines': [ 'NODE_HAVE_SMALL_ICU=1' ],
106106
}]],
107107
}],
108-
[ 'node_use_bundled_v8=="true" and \
109-
node_enable_v8_vtunejit=="true" and (target_arch=="x64" or \
110-
target_arch=="ia32" or target_arch=="x32")', {
111-
'defines': [ 'NODE_ENABLE_VTUNE_PROFILING' ],
112-
'dependencies': [
113-
'tools/v8_gypfiles/v8vtune.gyp:v8_vtune'
114-
],
115-
}],
116108
[ 'node_no_browser_globals=="true"', {
117109
'defines': [ 'NODE_NO_BROWSER_GLOBALS' ],
118110
} ],

src/api/environment.cc

-8
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
#include "node_v8_platform-inl.h"
88
#include "uv.h"
99

10-
#ifdef NODE_ENABLE_VTUNE_PROFILING
11-
#include "../deps/v8/src/third_party/vtune/v8-vtune.h"
12-
#endif
13-
1410
namespace node {
1511
using errors::TryCatchScope;
1612
using v8::Array;
@@ -186,10 +182,6 @@ void SetIsolateCreateParamsForNode(Isolate::CreateParams* params) {
186182
// heap based on the actual physical memory.
187183
params->constraints.ConfigureDefaults(total_memory, 0);
188184
}
189-
190-
#ifdef NODE_ENABLE_VTUNE_PROFILING
191-
params->code_event_handler = vTune::GetVtuneCodeEventHandler();
192-
#endif
193185
}
194186

195187
void SetIsolateUpForNode(v8::Isolate* isolate, IsolateSettingCategories cat) {

src/node.cc

-4
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@
6464
#include "inspector/worker_inspector.h" // ParentInspectorHandle
6565
#endif
6666

67-
#ifdef NODE_ENABLE_VTUNE_PROFILING
68-
#include "../deps/v8/src/third_party/vtune/v8-vtune.h"
69-
#endif
70-
7167
#ifdef NODE_ENABLE_LARGE_CODE_PAGES
7268
#include "large_pages/node_large_page.h"
7369
#endif

tools/v8_gypfiles/broken/v8vtune.gyp

-36
This file was deleted.

tools/v8_gypfiles/d8.gyp

-7
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
{
66
'variables': {
77
'v8_code': 1,
8-
# Enable support for Intel VTune. Supported on ia32/x64 only
9-
'v8_enable_vtunejit%': 0,
108
'v8_enable_i18n_support%': 1,
119
},
1210
'includes': ['toolchain.gypi', 'features.gypi'],
@@ -62,11 +60,6 @@
6260
}],
6361
],
6462
}],
65-
['v8_enable_vtunejit==1', {
66-
'dependencies': [
67-
'v8vtune.gyp:v8_vtune',
68-
],
69-
}],
7063
['v8_enable_i18n_support==1', {
7164
'dependencies': [
7265
'<(icu_gyp_path):icui18n',

tools/v8_gypfiles/features.gypi

-6
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@
102102
# Sets -dENABLE_GDB_JIT_INTERFACE.
103103
'v8_enable_gdbjit%': 0,
104104

105-
# Sets -dENABLE_VTUNE_JIT_INTERFACE.
106-
'v8_enable_vtunejit%': 0,
107-
108105
# Currently set for node by common.gypi, avoiding default because of gyp file bug.
109106
# Should be turned on only for debugging.
110107
#'v8_enable_handle_zapping%': 0,
@@ -225,9 +222,6 @@
225222
['v8_enable_gdbjit==1', {
226223
'defines': ['ENABLE_GDB_JIT_INTERFACE',],
227224
}],
228-
['v8_enable_vtunejit==1', {
229-
'defines': ['ENABLE_VTUNE_JIT_INTERFACE',],
230-
}],
231225
['v8_enable_minor_mc==1', {
232226
'defines': ['ENABLE_MINOR_MC',],
233227
}],

0 commit comments

Comments
 (0)