12
Looking for some chrome API (to be used in chrome extension) that let me to do following programmatically:- - start profiling - end profiling - get list of time taken by all JS on the page
I can achieve the same in Firefox as:
jsd = DebuggerService.getService(jsdIDebuggerService)
// start the profiling as
jsd.flags |= COLLECT_PROFILE_DATA;
// stop the profilinf as
jsd.flags &= ~COLLECT_PROFILE_DATA;
// get the details of how much time each JS function took
jsd.enumerateScripts({enumerateScript: function(script)
{
// script object has timings detail
}
Even some API that can let me to export the profiling info from developer tool bar will be helpful