Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it just me? I have the xhprof_disable_admin_paths variable's checkbox checked, and yet XHProf still generates a profile log file and still shows "XHProf output" at the bottom of every screen, admin included. I have hardcoded a return FALSE in xhprof_is_enabled()
, and that does silence the thing.
Comment | File | Size | Author |
---|---|---|---|
#8 | interdiff-2631144.txt | 421 bytes | andypost |
#4 | 2631144-administrative-paths-admin-menu-4.patch | 1.46 KB | thePanz |
Comments
Comment #2
Elijah LynnSame here. Doing a quick debug it looks like it may be honoring it on the first request. But then admin_menu does an XHR and it get's generated for that request. This is because it checks arg(0) == 'admin...
This maybe needs to be updated to have a checkbox to also ignore admin menu requests too?
Comment #3
texas-bronius CreditAttribution: texas-bronius commentedI see what you're saying and can corroborate your theory: When I disabled the admin_menu module, the superfluous XHProf link at the bottom of the generated page no longer shows on /admin pages.
Comment #4
thePanz CreditAttribution: thePanz at Liip for FREITAG lab. AG commentedPatch attached, new setting (enabled by default) to avoid profiling admin_menu XHR calls.
Comment #5
Elijah LynnQuick review and it looks good @thePanz! Didn't test yet so I won't RTBC yet but just wanted to leave that feedback.
Comment #6
jstollerWorks great! Thanks!
Comment #7
osopolarWorks for me too. Thanks thePanz.
Comment #8
andypostOn commit I've added uninstall of variable after #2892127: Configuration not deleted on uninstall
Comment #10
andypost