| Page 1 of 1 | [ 3 posts ] |
|
Hi all,
I am trying to use the YUI profiler to profile AJAX calls. I took an e.g. from w3 schools and added the YUI profiler code around the ajax code. Here is the link to the code http://pastie.org/2579328. But what i am noticing is, it doesn't capture the end to end time, it looks like its capturing time only up-to the time the asynchronous call gets triggered and doesn't capture the end to end time. If i set the async attribute to false, i see the total end to end call. Any ideas on how to capture the end to end time in an async situation. Mahesh |
|
Bump...anyone?
|
Joe Developer
|
Probably only by using the 'stopwatch' functionality, see: http://developer.yahoo.com/yui/docs/YAH ... thod_start
When you are doing an async call the function is quite simply 'done' once it sends the ajax request. You could insert the start call at the top of your function, and the end call just after the innerHTML injection. In reality though, what you are actually profiling is the server - there are a number of good tools for that, like Apache Bench or others here: http://en.wikipedia.org/wiki/Web_server_benchmarking |
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group