Skip to content

Instantly share code, notes, and snippets.

@danmilon
Created Feb 19, 2013
Embed
What would you like to do?
node os.gethostname() strace
$ node -p -e 'process.versions'
{ http_parser: '1.0',
node: '0.8.19',
v8: '3.11.10.25',
ares: '1.7.5-DEV',
uv: '0.8',
zlib: '1.2.3',
openssl: '1.0.1c' }
$ strace -e uname node -e "for (var i = 0; i < 15; i++) { require('os').hostname() }"
uname({sys="Linux", node="DANPC", ...}) = 0
uname({sys="Linux", node="DANPC", ...}) = 0
uname({sys="Linux", node="DANPC", ...}) = 0
uname({sys="Linux", node="DANPC", ...}) = 0
uname({sys="Linux", node="DANPC", ...}) = 0
uname({sys="Linux", node="DANPC", ...}) = 0
uname({sys="Linux", node="DANPC", ...}) = 0
uname({sys="Linux", node="DANPC", ...}) = 0
uname({sys="Linux", node="DANPC", ...}) = 0
uname({sys="Linux", node="DANPC", ...}) = 0
uname({sys="Linux", node="DANPC", ...}) = 0
uname({sys="Linux", node="DANPC", ...}) = 0
uname({sys="Linux", node="DANPC", ...}) = 0
uname({sys="Linux", node="DANPC", ...}) = 0
uname({sys="Linux", node="DANPC", ...}) = 0
uname({sys="Linux", node="DANPC", ...}) = 0
+++ exited with 0 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment