Another issue with the CI profiler |
[eluser]wstevens[/eluser]
http://ellislab.com/codeigniter/user-gui...iling.html It seems to update when you reload or load a new page. But what if you press a button which triggers some AJAX but no page reload or load occurs? For instance, you press a button, and the Javascript popup displays the server response? I can't seem to get the profiler to profile this type of event. Is there a way to get a profile of pure AJAX? Thanks!
[eluser]wstevens[/eluser]
What would be neat is if the profiler, instead of outputting to the website in which it is embedded, would output to a text file or even better to an HTML file residing on the server. But I guess this is not possible?
[eluser]Aken[/eluser]
The output profiler appends the profiling information to the output of the page, in a similar way that $this->load->view() does. So you won't see profile info from Ajax requests unless you want to display profile info on the ajax pages and request its output. You could easily extend the profiler library and direct its output to a file rather than the browser.
[eluser]wstevens[/eluser]
After some exploring, I found a good solution to my problem, which is xdebug with Webgrind front end. It has no problem with profiling pure AJAX in a separate file (without you having to insert any kind of code). There's still a small problem, for instance if you only want it to profile a specific line of code. All that said I still think the profiler that comes with code igniter is a good one and has its advantages, it just wasn't suited for my particular problem. |
Welcome Guest, Not a member yet? Register Sign In |