You may want to take a look at: http://blog.nodejs.org/2012/04/25/profiling-node-js/
-- Dave On Wed, Feb 5, 2014 at 1:39 AM, Pomil Proch <[email protected]> wrote: > My aim is to develop a java script profiler for nodejs . The requirements > are as under : > > 1. Should be able to fetch call stack . > 2. Get Time stamp information. > 3. Get number of iterations. > > My chief concern is that i should not modify the source file ( .js file ) . > > I have seen all the available profiling options for JavaScript code on > node js . The problem i face is that most of them require manual injection > of the profiling specific code into my source code. Here is an example > > *var profiler = new Profiler()* *// Need to create profiler in my .js > file* > > *profiler.startProfiling()* > > *// My Code* > > *profiler.endProfling()* > > Since most profilers require this kind of code injection. Can anyone > suggest me any other profiling alternative (which will not need source code > modification). > > Currently i am using v8 functionality provided with node js to profile my > JavaScript Code. For example > > *node --prof MyTestApp.js* > > This command gives me a v8.log . Here is a sample > log<http://pastebin.com/AdnW7s2k> > > So here are my queries > > Can there be possible workaround for v8 , so that i can add timestamp > information ,iteration count for functions > > -- > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
