From 010222d39fbbf766b9c24a448a804d23928929f4 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 28 Oct 2013 14:57:47 +0100 Subject: src: add tracing.v8.on('gc') statistics hooks Add a new 'tracing' module with a v8 property that lets the user register listeners for gc events. The listeners are invoked after every garbage collection cycle with 'before' and 'after' statistics. Useful for monitoring tools that want to keep track of memory usage. --- node.gyp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'node.gyp') diff --git a/node.gyp b/node.gyp index d4cd40ea1..fa9b44a04 100644 --- a/node.gyp +++ b/node.gyp @@ -56,6 +56,7 @@ 'lib/string_decoder.js', 'lib/sys.js', 'lib/timers.js', + 'lib/tracing.js', 'lib/tls.js', 'lib/_tls_legacy.js', 'lib/_tls_wrap.js', @@ -96,6 +97,7 @@ 'src/node_javascript.cc', 'src/node_main.cc', 'src/node_os.cc', + 'src/node_v8.cc', 'src/node_stat_watcher.cc', 'src/node_watchdog.cc', 'src/node_zlib.cc', -- cgit v1.2.3