Skip to content

Instantly share code, notes, and snippets.

@danmilon
Created February 19, 2013 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danmilon/4989367 to your computer and use it in GitHub Desktop.
Save danmilon/4989367 to your computer and use it in GitHub Desktop.
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