Ajax Performance
A blog by Ryan Breen of CloudFloor
YUI Profiler
February 20, 2008 on 7:36 pm | In ajax | 3 CommentsI missed covering the release of the YUI Profiler in 2.4.0, but in YUI 2.5.0 they’ve sweetened the pot further with ProfilerViewer Control, a visual interface to the data collected by Profiler. Together, they provide an advanced, cross browser alternative to the profiling features of Firebug, something that is desperately needed as the complexity of client side applications increases. As great as Firebug is at profiling JS, I’m always worried that the data may not perfectly apply to other browsers. With YUI Profiler, that’s not an issue.
The profiling model differs significantly from Firebug, which runs as a browser extension and can reach deep into browser internals for its metrics. YUI Profiler is running within the JS sandbox, so the user is required to register specific functions for profiling. This limits the profiling from broad spectrum analysis of the whole application to more targeted measurement, but that also serves to limit the performance overhead of the profiling itself. When discussing the jsLex approach to instrumentation, I was worried that the tool itself would significantly impact runtime performance; with YUI Profiler, I don’t think that’s a concern.
I’m a fan of this approach. I like targeted instrumentation, and YUI Profiler falls somewhere in the middle between full browser instrumentation (Firebug, jsLex) and granular instrumentation calls (Firebug Lite). There are definitely advantages in the latter approach, such as the ability to measure the time of network events, such as async network calls, which as far as I can tell isn’t possible with YUI Profiler. That might be a nice, easy addition to the suite.
3 Comments »
RSS feed for comments on this post.
Leave a comment
led silhouettes | phoenix homes for sale | hat wholesale
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^
Hi Ryan,
I’m trying to profile my YUI data table using YUI Profiler, but as far as that I tried, I still got “no records found” on my YUI profile viewer.
Would you mind if you mail me an example how to profile a YUI data table? Thx a lot…
Comment by Riza — March 23, 2009 #
Hi Riza,
I am not sure if your problem with YUI profiler still persits, I have posted one blog regarding YUI profiler. Please go through that and hope that will help.
Thanks
Asit
Comment by Asit — November 5, 2009 #
This is an incredible development! We utilize YUI for the vast majority of our javascript needs on my current project but experimented recently with Ext. There is definitely more in Ext but that comes at the cost of simplicity. YUI has traditionally been very easy to implement whereas the same cannot be said of Ext. I’d love to see these kinds of activities taking place over at jQuery!
Comment by Mike Hunter — March 2, 2010 #