hashbangcode / vlad

Vlad - Vagrant LAMP Ansible Drupal
173 stars 53 forks source link

xhprof works only on admin pages #85

Closed philipnorton42 closed 9 years ago

philipnorton42 commented 10 years ago

Hi, Thanks for Vlad :)

I've added ?_profile=1 to the URL, but it seems it's working only on admin/* pages. Am I missing something?


philipnorton42 commented 10 years ago

Hey, thanks for using it :)

You might find that Varnish tends to get in the way of the session that xhprof uses. Although it will work on occasion you'll end up seeing only a few pages appearing in the xhprof gui.

Try going to port 8080 (which is the Apache port) and applying the profile flag. Like this:

http://www.drupal.local:8080/?_profile=1

Let me know how you get on.


Original Comment By: Philip Norton

weitzman commented 10 years ago

I proposed getting rid of the convenience of _profile=1 in #98. It gets in the way of debugging. Kinda sad, but it should go IMO.

philipnorton42 commented 9 years ago

I'm closing this as 1) I'm certain it works as I've been using xhprof over the past few months to profile sites and 2) it was more a Varnish (or documentation for that matter) issue that we should now have solved via our new documentation site (http://vlad-docs.readthedocs.org/en/latest/).