diff options
author | Igor Zinkovsky <igorzi@microsoft.com> | 2012-06-11 16:23:17 -0700 |
---|---|---|
committer | Igor Zinkovsky <igorzi@microsoft.com> | 2012-06-13 15:36:08 -0700 |
commit | 35a1421e9670e7b5bc042758170d20673aed666f (patch) | |
tree | 147bad29287b926081406d4ec5dcdd4c8b1cd762 /configure | |
parent | 74c8041fb6d781981e5f7e58167dd4ac3c487a7d (diff) | |
download | node-35a1421e9670e7b5bc042758170d20673aed666f.tar.gz |
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-x | configure | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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) |