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:If you're using master the you don't have to use dtrace. I have a rough outline here of how to create flame graphs: https://gist.github.com/trevnorris/9616784
--
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 nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/f75448b1-c526-4702-ba80-7dd86d4bcf60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes. perf has JIT support. When the Node runtime flag is enabled the app will produce a .map file which contains the memory address and instruction information necessary to fill in the blanks.
> Is it possibly to apply this for a already running app?
AFAIK the application must be started with the correct option. Though there may be an API that allows the user to toggle this functionality. If not, then it would be useful to create a ticket upstream to support it.
> Without using perf record ?
This one confuses me. perf record is what allows you to collect the data necessary to create the flame graph. Unless you use dtrace. Those are the only two options I know of so far.
> Does it show js stack traces?Yes. perf has JIT support. When the Node runtime flag is enabled the app will produce a .map file which contains the memory address and instruction information necessary to fill in the blanks.
AFAIK the application must be started with the correct option. Though there may be an API that allows the user to toggle this functionality. If not, then it would be useful to create a ticket upstream to support it.
> Is it possibly to apply this for a already running app?
This one confuses me. perf record is what allows you to collect the data necessary to create the flame graph. Unless you use dtrace. Those are the only two options I know of so far.
> Without using perf record ?
--
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 nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/01d7745b-a845-4205-ad24-4e3101b1f42d%40googlegroups.com.