Browse Source

dtrace: enable uv's probes if enabled

v0.11.3-release
Timothy J Fontaine 12 years ago
parent
commit
f0d80d7db0
  1. 2
      configure
  2. 7
      node.gyp

2
configure

@ -464,6 +464,8 @@ def configure_node(o):
# SunOS, and we haven't implemented it.)
if sys.platform.startswith('sunos') or sys.platform.startswith('darwin'):
o['variables']['node_use_dtrace'] = b(not options.without_dtrace)
o['variables']['uv_use_dtrace'] = o['variables']['node_use_dtrace']
o['variables']['uv_parent_path'] = '/deps/uv/'
elif sys.platform.startswith('linux'):
o['variables']['node_use_dtrace'] = 'false'
o['variables']['node_use_systemtap'] = b(options.with_dtrace)

7
node.gyp

@ -430,13 +430,14 @@
{
'action_name': 'node_dtrace_provider_o',
'inputs': [
'src/node_provider.d',
'<(PRODUCT_DIR)/obj.target/node/src/node_dtrace.o'
'<(PRODUCT_DIR)/obj.target/libuv/deps/uv/src/unix/core.o',
'<(PRODUCT_DIR)/obj.target/node/src/node_dtrace.o',
],
'outputs': [
'<(PRODUCT_DIR)/obj.target/node/src/node_dtrace_provider.o'
],
'action': [ 'dtrace', '-G', '-xnolibs', '-s', '<@(_inputs)',
'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
'-s', 'deps/uv/src/unix/uv-dtrace.d', '<@(_inputs)',
'-o', '<@(_outputs)' ]
}
]

Loading…
Cancel
Save