Uh oh!
There was an error while loading. Please reload this page.
node: call set_trace_sync_io before bootstrap - #5964
Conversation
env->set_trace_sync_io was previously being called after node::LoadEnvironment, meaning it wasn't in effect for the initial script.
joshgav
commented
Mar 30, 2016
Save the following in a script and call with varfs=require('fs')console.log(fs.readFileSync(__filename,{encoding:'UTF8'}))I'll add a test. /cc @cjihrig |
cjihrig
commented
Mar 31, 2016
@trevnorris |
evanlucas
commented
Mar 31, 2016
Yea, I think that was by design. |
Fishrock123
commented
Mar 31, 2016
@cjihrig correct. |
joshgav
commented
Mar 31, 2016
Okay, I'll add a comment to that effect then. |
joshgav
commented
Mar 31, 2016
On second thought, @trevnorris could you explain why we skip the trace on the initial tick? I can add a comment and check the docs, would be nice to have an explanation. |
trevnorris
commented
Mar 31, 2016
First, yes, it is supposed to run after bootstrap. From Reasons for this:
Have you tried running |
Fishrock123
commented
Apr 4, 2016
Closing since this does not appear to be an issue, please let me know if this wasn't correct. :) |
Pull Request check-list
make -j8 test(UNIX) orvcbuild test nosign(Windows) pass withthis change (including linting)?
test (or a benchmark) included?
Affected core subsystem(s)
node --trace-sync-io
Description of change
env->set_trace_sync_iowas previously being called afternode::LoadEnvironmentso it wasn't in effect for the initial script.