سؤال

Is there a way to get a timeline for "normal" JavaScript functions like there is for Ajax, images, etc. in Firebug?

Timeline for Ajax

هل كانت مفيدة؟

المحلول

There's no timeline for functions in Firebug, but you can use it's Profiler feature inside the Console panel to get a numerical output of the JavaScript timings.

نصائح أخرى

You can use the profile tab on chrome debugger for start recording a JavaScript CPU profile like

enter image description here

For more information about PROFILE

You can add a date object at start and end of the method and do some thing like

endDate - startDate and print this to the console.

This is only for performance checking and later you can remove the start date and end date.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top