Trevor,

I was able to try this out.
Did some small tweaks to your script:
https://gist.github.com/arunoda/09a7f154a130e3d04c89/revisions

---

Arunoda Susiripala
I curate Meteor Weekly - Check it out!
<http://meteorhacks.com/meteor-weekly/?utm_source=email-footer&utm_medium=email&utm_campaign=meteorweekly>


On Tue, Jun 17, 2014 at 11:50 AM, Arunoda Susiripala <
[email protected]> wrote:

>
> On Tue, Jun 17, 2014 at 11:00 AM, Trevor Norris <[email protected]>
> wrote:
>
>> > 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.
>>
>
> That's nice. I'll give this a try today.
>
>
>>
>> > 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.
>>
>
> I'll check. Anyway, it's okay to run with an option.
>
>
>>
>> > 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.
>>
>> This is what I asked: is it possible to ask perf to record by simply
> giving a PID rather start the node app as follow.
>
> *perf record -i -g -e cycles:u -- ~/sources/node/node --perf-basic-prof
> script.js*
>
>
> --
>> 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/01d7745b-a845-4205-ad24-4e3101b1f42d%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/CAJzNrTGbm-y%2BUR4PqK5W5HSRJDztqm%3DrLfa0uFgj88%2B40NuJtg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to