On Wed, Apr 11, 2012 at 23:16, Satyam Shekhar <[email protected]> wrote: >> Modules are loaded with dlopen(). I don't think the V8 profiler >> handles that, time spent in them will be counted towards the main node >> binary. > > This makes it really difficult. If a binding in my app is consuming lot of > ticks, profiling might mislead me to believe that node is consuming those > ticks. Any work around this?
What I usually do is profile with both the V8 profiler and callgrind. I suppose it could be fixed. dlopen() mappings show up in /proc/self/maps so technically V8 could know what address ranges belong to what modules. The problem is that the mappings are scanned at start-up, before any modules are loaded. Maybe a good topic for your first patch? :-) -- 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
