summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorIgor Zinkovsky <igorzi@microsoft.com>2012-06-11 16:23:17 -0700
committerIgor Zinkovsky <igorzi@microsoft.com>2012-06-13 15:36:08 -0700
commit35a1421e9670e7b5bc042758170d20673aed666f (patch)
tree147bad29287b926081406d4ec5dcdd4c8b1cd762 /configure
parent74c8041fb6d781981e5f7e58167dd4ac3c487a7d (diff)
downloadandroid-node-v8-35a1421e9670e7b5bc042758170d20673aed666f.tar.gz
android-node-v8-35a1421e9670e7b5bc042758170d20673aed666f.tar.bz2
android-node-v8-35a1421e9670e7b5bc042758170d20673aed666f.zip
Windows: Enable ETW events.
This commit enables ETW events to be fired on Windows for existing DTrace probes. ETW instrumentation is enabled by default. It is possible to build node.exe without ETW instrumentation by using --without-etw option with configure script.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index 8633d48c31..31d7f82fc6 100755
--- a/configure
+++ b/configure
@@ -115,6 +115,16 @@ parser.add_option("--without-dtrace",
dest="without_dtrace",
help="Build without DTrace")
+parser.add_option("--with-etw",
+ action="store_true",
+ dest="with_etw",
+ help="Build with ETW (default is true on Windows)")
+
+parser.add_option("--without-etw",
+ action="store_true",
+ dest="without_etw",
+ help="Build without ETW")
+
# CHECKME does this still work with recent releases of V8?
parser.add_option("--gdb",
action="store_true",
@@ -273,6 +283,15 @@ def configure_node(o):
o['variables']['node_use_dtrace'] = 'false'
+ # By default, enable ETW on Windows.
+ if sys.platform.startswith('win32'):
+ o['variables']['node_use_etw'] = b(not options.without_etw);
+ elif b(options.with_etw) == 'true':
+ raise Exception('ETW is only supported on Windows.')
+ else:
+ o['variables']['node_use_etw'] = 'false'
+
+
def configure_libz(o):
o['variables']['node_shared_zlib'] = b(options.shared_zlib)