summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2015-05-14 11:46:54 -0600
committerTrevor Norris <trev.norris@gmail.com>2015-05-18 10:05:32 -0600
commitc1de6d249e9b17d53edc0a713c1e43ef9b457ea7 (patch)
treefba50f35b3a2266d52eb70cce48fcd7ac0eaf7cf /node.gyp
parent066274794c077c9323109f95ff0efe53e17d323a (diff)
downloadandroid-node-v8-c1de6d249e9b17d53edc0a713c1e43ef9b457ea7.tar.gz
android-node-v8-c1de6d249e9b17d53edc0a713c1e43ef9b457ea7.tar.bz2
android-node-v8-c1de6d249e9b17d53edc0a713c1e43ef9b457ea7.zip
core: implement runtime flag to trace sync io
Use the --trace-sync-io flag to print a stack trace whenever a sync method is used after the first tick, excluding during the process exit event. (e.g. fs.readFileSync()) It does not track if the warning has occurred at a specific location in the past and so will print the warning every time. Reason for not printing during the first tick of the appication is so all necessary resources can be required. Also by excluding synchronous calls during exit is necessary in case any data needs to be logged out by the application before it shuts down. Fixes: https://github.com/nodejs/io.js/issues/1674 PR-URL: https://github.com/nodejs/io.js/pull/1707 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Fedor Indutny <fedor@indutny.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Petka Antonov <petka_antonov@hotmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp1
1 files changed, 1 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index c72b93b138..70c9841a89 100644
--- a/node.gyp
+++ b/node.gyp
@@ -99,6 +99,7 @@
'sources': [
'src/debug-agent.cc',
'src/async-wrap.cc',
+ 'src/env.cc',
'src/fs_event_wrap.cc',
'src/cares_wrap.cc',
'src/handle_wrap.cc',