That post is not outdates, as still "You must gather data on a system that supports DTrace with the Node.js ustack helper. For now, this pretty much means illumos <http://illumos.org/>-based systems like SmartOS <http://smartos.org/>"
In other words, you will not make flame graph work on 14.04 Ubuntu. On Saturday, June 14, 2014 8:13:27 PM UTC+2, Samuel Gómez wrote: > > Hi, I'm trying to follow > http://blog.nodejs.org/2012/04/25/profiling-node-js/ > on > * Ubuntu 14.04 > * Node compiled from github source on yesterday > to get a flame graph of a node program. > > But I fail on step 2. > > dtrace -n 'profile-97/execname == "node" && arg1/{ > @[jstack(150, 8000)] = count(); } tick-60s { exit(0); }' > stacks.out > > In my case writes this on stacks.out: > Usage /usr/bin/dtrace [--help] [-h | -G] [-C [-I<Path>]] -s File.d [-o > <File>] > > Also, doing a man dtrace I see that there is no -n option. > > So I'd say that that post is outdated. But also I've read that dtrace for > linux kind of sucks, so I'm not sure what's going on. > > Also I've seen this problem is quickly mentioned here > http://logs.nodejs.org/node.js/2014-02-19 > but not solved. > > Please, do you know if there is still a way to get a flamegraph from node > on Linux? > > Thank you! > > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/8bfbcc20-faa8-4b03-ab82-8bb0d01497c7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
