Thanks for your answers. nprof and node-tick-processor have worked properly 
and I could retrieve information from v8.log. Now I just have to learn how 
to use it, it's not as obvious as I could imagine: still no function name 
for example :( I've made a dumb script with a fibo + other functions, and I 
can't see how to make the profiler tell me "fibo() is taking all your CPU". 
If you have any good resources to learn that, I'd be glad ;)

Thanks too for the "look" module, I'll give a try it sounds really 
 interesting.

I only profiled PHP and Java apps until now, and outputs are very clear, 
maybe this difficulty is generic to C++ apps ?




Le mercredi 12 septembre 2012 02:45:04 UTC+2, Andrey a écrit :
>
> Try node-tick-processor to read your v8.log - 
> https://github.com/sidorares/node-tick
>
> On Wednesday, 12 September 2012 02:39:26 UTC+10, Nicolas Chambrier wrote:
>>
>> Hello,
>>
>> I'm desperately trying to profile my application, like I used to do with 
>> other languages where I could output some file I could pass to kcachegrind 
>> which would show me when and where the runtime executed my code.
>>
>> I'm running Ubuntu or Debian VM, whatever I've tried several methods:
>>
>>    - Using dtrace on SmartOS: OK I can run dtrace, but I'm absolutely 
>>    lost on SmartOS and I need many bricks like Redis and MongoDB I'm not 
>> sure 
>>    how to install properly (I've compiled everything, which was a pita). 
>> Plus 
>>    I'm not a sysadmin, which makes me waste ages each time I need to 
>> configure 
>>    anything. Not forgetting the most recent provided zone (node-1.3.3) 
>>    includes node v0.6.8. Dafuq ?
>>    - Using node --prof seemed very promising: simple, everything is 
>>    embedded, cool :) I can generate a v8.log, OK. But then when I run 
>>    "deps/v8/tools/linux-tick-processor" on it, I get no output, just an exit 
>>    code 126. No idea what it means, I couldn't find information about this :(
>>    - Using valgrind I can output a callgrind file I can then use with 
>>    kcachegrind. It's cool and I get real values, I can practically see the 
>>    call chain, but I can't see my real function names. Instead I get some 
>>    hexadecimal names, v8:: and node:: internals. That makes it quite useless 
>>    for me :(
>>    - nodetime is great, but I'd really like a tool that doesn't rely on 
>>    external service. Even if I finally stick with this solution, I need to 
>>    have an alternative.
>>
>>
>> Does someone know where error 126 comes from in linux-tick-processor ?
>>
>> Does what I'm looking for only exist: a profiler that would output stack 
>> and durations with the actual function names ? And easy to use on Linux x]
>>
>>
>> Thanks a lot for all the information you can provide! I really want to 
>> get through that this time ;)
>>
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to