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: https://github.com/nodejs/node/issues/28310 Refs: https://github.com/nodejs/node/pull/3785 PR-URL: https://github.com/nodejs/node/pull/28522 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
d0e380172a
commit
88bac02bee
16
configure.py
16
configure.py
@ -131,13 +131,6 @@ parser.add_option("--partly-static",
|
|||||||
help="Generate an executable with libgcc and libstdc++ libraries. This "
|
help="Generate an executable with libgcc and libstdc++ libraries. This "
|
||||||
"will not work on OSX when using the default compilation environment")
|
"will not work on OSX when using the default compilation environment")
|
||||||
|
|
||||||
parser.add_option("--enable-vtune-profiling",
|
|
||||||
action="store_true",
|
|
||||||
dest="enable_vtune_profiling",
|
|
||||||
help="Enable profiling support for Intel VTune profiler to profile "
|
|
||||||
"JavaScript code executed in nodejs. This feature is only available "
|
|
||||||
"for x32, x86, and x64 architectures.")
|
|
||||||
|
|
||||||
parser.add_option("--enable-pgo-generate",
|
parser.add_option("--enable-pgo-generate",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
dest="enable_pgo_generate",
|
dest="enable_pgo_generate",
|
||||||
@ -992,15 +985,6 @@ def configure_node(o):
|
|||||||
if flavor == 'aix':
|
if flavor == 'aix':
|
||||||
o['variables']['node_target_type'] = 'static_library'
|
o['variables']['node_target_type'] = 'static_library'
|
||||||
|
|
||||||
if target_arch in ('x86', 'x64', 'ia32', 'x32'):
|
|
||||||
o['variables']['node_enable_v8_vtunejit'] = b(options.enable_vtune_profiling)
|
|
||||||
elif options.enable_vtune_profiling:
|
|
||||||
raise Exception(
|
|
||||||
'The VTune profiler for JavaScript is only supported on x32, x86, and x64 '
|
|
||||||
'architectures.')
|
|
||||||
else:
|
|
||||||
o['variables']['node_enable_v8_vtunejit'] = 'false'
|
|
||||||
|
|
||||||
if flavor != 'linux' and (options.enable_pgo_generate or options.enable_pgo_use):
|
if flavor != 'linux' and (options.enable_pgo_generate or options.enable_pgo_use):
|
||||||
raise Exception(
|
raise Exception(
|
||||||
'The pgo option is supported only on linux.')
|
'The pgo option is supported only on linux.')
|
||||||
|
1
node.gyp
1
node.gyp
@ -21,7 +21,6 @@
|
|||||||
'node_use_openssl%': 'true',
|
'node_use_openssl%': 'true',
|
||||||
'node_shared_openssl%': 'false',
|
'node_shared_openssl%': 'false',
|
||||||
'node_v8_options%': '',
|
'node_v8_options%': '',
|
||||||
'node_enable_v8_vtunejit%': 'false',
|
|
||||||
'node_core_target_name%': 'node',
|
'node_core_target_name%': 'node',
|
||||||
'node_lib_target_name%': 'libnode',
|
'node_lib_target_name%': 'libnode',
|
||||||
'node_intermediate_lib_type%': 'static_library',
|
'node_intermediate_lib_type%': 'static_library',
|
||||||
|
@ -105,14 +105,6 @@
|
|||||||
'defines': [ 'NODE_HAVE_SMALL_ICU=1' ],
|
'defines': [ 'NODE_HAVE_SMALL_ICU=1' ],
|
||||||
}]],
|
}]],
|
||||||
}],
|
}],
|
||||||
[ 'node_use_bundled_v8=="true" and \
|
|
||||||
node_enable_v8_vtunejit=="true" and (target_arch=="x64" or \
|
|
||||||
target_arch=="ia32" or target_arch=="x32")', {
|
|
||||||
'defines': [ 'NODE_ENABLE_VTUNE_PROFILING' ],
|
|
||||||
'dependencies': [
|
|
||||||
'tools/v8_gypfiles/v8vtune.gyp:v8_vtune'
|
|
||||||
],
|
|
||||||
}],
|
|
||||||
[ 'node_no_browser_globals=="true"', {
|
[ 'node_no_browser_globals=="true"', {
|
||||||
'defines': [ 'NODE_NO_BROWSER_GLOBALS' ],
|
'defines': [ 'NODE_NO_BROWSER_GLOBALS' ],
|
||||||
} ],
|
} ],
|
||||||
|
@ -7,10 +7,6 @@
|
|||||||
#include "node_v8_platform-inl.h"
|
#include "node_v8_platform-inl.h"
|
||||||
#include "uv.h"
|
#include "uv.h"
|
||||||
|
|
||||||
#ifdef NODE_ENABLE_VTUNE_PROFILING
|
|
||||||
#include "../deps/v8/src/third_party/vtune/v8-vtune.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace node {
|
namespace node {
|
||||||
using errors::TryCatchScope;
|
using errors::TryCatchScope;
|
||||||
using v8::Array;
|
using v8::Array;
|
||||||
@ -188,10 +184,6 @@ void SetIsolateCreateParamsForNode(Isolate::CreateParams* params) {
|
|||||||
// heap based on the actual physical memory.
|
// heap based on the actual physical memory.
|
||||||
params->constraints.ConfigureDefaults(total_memory, 0);
|
params->constraints.ConfigureDefaults(total_memory, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef NODE_ENABLE_VTUNE_PROFILING
|
|
||||||
params->code_event_handler = vTune::GetVtuneCodeEventHandler();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetIsolateUpForNode(v8::Isolate* isolate, IsolateSettingCategories cat) {
|
void SetIsolateUpForNode(v8::Isolate* isolate, IsolateSettingCategories cat) {
|
||||||
|
@ -64,10 +64,6 @@
|
|||||||
#include "inspector/worker_inspector.h" // ParentInspectorHandle
|
#include "inspector/worker_inspector.h" // ParentInspectorHandle
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef NODE_ENABLE_VTUNE_PROFILING
|
|
||||||
#include "../deps/v8/src/third_party/vtune/v8-vtune.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef NODE_ENABLE_LARGE_CODE_PAGES
|
#ifdef NODE_ENABLE_LARGE_CODE_PAGES
|
||||||
#include "large_pages/node_large_page.h"
|
#include "large_pages/node_large_page.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
# Copyright 2012 the V8 project authors. All rights reserved.
|
|
||||||
# Use of this source code is governed by a BSD-style license that can be
|
|
||||||
# found in the LICENSE file.
|
|
||||||
|
|
||||||
{
|
|
||||||
'variables': {
|
|
||||||
'v8_code': 1,
|
|
||||||
},
|
|
||||||
'includes': ['toolchain.gypi', 'features.gypi'],
|
|
||||||
'targets': [
|
|
||||||
{
|
|
||||||
'target_name': 'v8_vtune',
|
|
||||||
'type': 'static_library',
|
|
||||||
'dependencies': [
|
|
||||||
'v8.gyp:v8',
|
|
||||||
],
|
|
||||||
'sources': [
|
|
||||||
'../src/third_party/vtune/ittnotify_config.h',
|
|
||||||
'../src/third_party/vtune/ittnotify_types.h',
|
|
||||||
'../src/third_party/vtune/jitprofiling.cc',
|
|
||||||
'../src/third_party/vtune/jitprofiling.h',
|
|
||||||
'../src/third_party/vtune/v8-vtune.h',
|
|
||||||
'../src/third_party/vtune/vtune-jit.cc',
|
|
||||||
'../src/third_party/vtune/vtune-jit.h',
|
|
||||||
],
|
|
||||||
'direct_dependent_settings': {
|
|
||||||
'defines': ['ENABLE_VTUNE_JIT_INTERFACE',],
|
|
||||||
'conditions': [
|
|
||||||
['OS != "win"', {
|
|
||||||
'libraries': ['-ldl',],
|
|
||||||
}],
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}
|
|
@ -5,8 +5,6 @@
|
|||||||
{
|
{
|
||||||
'variables': {
|
'variables': {
|
||||||
'v8_code': 1,
|
'v8_code': 1,
|
||||||
# Enable support for Intel VTune. Supported on ia32/x64 only
|
|
||||||
'v8_enable_vtunejit%': 0,
|
|
||||||
'v8_enable_i18n_support%': 1,
|
'v8_enable_i18n_support%': 1,
|
||||||
},
|
},
|
||||||
'includes': ['toolchain.gypi', 'features.gypi'],
|
'includes': ['toolchain.gypi', 'features.gypi'],
|
||||||
@ -62,11 +60,6 @@
|
|||||||
}],
|
}],
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
['v8_enable_vtunejit==1', {
|
|
||||||
'dependencies': [
|
|
||||||
'v8vtune.gyp:v8_vtune',
|
|
||||||
],
|
|
||||||
}],
|
|
||||||
['v8_enable_i18n_support==1', {
|
['v8_enable_i18n_support==1', {
|
||||||
'dependencies': [
|
'dependencies': [
|
||||||
'<(icu_gyp_path):icui18n',
|
'<(icu_gyp_path):icui18n',
|
||||||
|
@ -102,9 +102,6 @@
|
|||||||
# Sets -dENABLE_GDB_JIT_INTERFACE.
|
# Sets -dENABLE_GDB_JIT_INTERFACE.
|
||||||
'v8_enable_gdbjit%': 0,
|
'v8_enable_gdbjit%': 0,
|
||||||
|
|
||||||
# Sets -dENABLE_VTUNE_JIT_INTERFACE.
|
|
||||||
'v8_enable_vtunejit%': 0,
|
|
||||||
|
|
||||||
# Currently set for node by common.gypi, avoiding default because of gyp file bug.
|
# Currently set for node by common.gypi, avoiding default because of gyp file bug.
|
||||||
# Should be turned on only for debugging.
|
# Should be turned on only for debugging.
|
||||||
#'v8_enable_handle_zapping%': 0,
|
#'v8_enable_handle_zapping%': 0,
|
||||||
@ -225,9 +222,6 @@
|
|||||||
['v8_enable_gdbjit==1', {
|
['v8_enable_gdbjit==1', {
|
||||||
'defines': ['ENABLE_GDB_JIT_INTERFACE',],
|
'defines': ['ENABLE_GDB_JIT_INTERFACE',],
|
||||||
}],
|
}],
|
||||||
['v8_enable_vtunejit==1', {
|
|
||||||
'defines': ['ENABLE_VTUNE_JIT_INTERFACE',],
|
|
||||||
}],
|
|
||||||
['v8_enable_minor_mc==1', {
|
['v8_enable_minor_mc==1', {
|
||||||
'defines': ['ENABLE_MINOR_MC',],
|
'defines': ['ENABLE_MINOR_MC',],
|
||||||
}],
|
}],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user