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.
I went to the list of xhprof runs, and re-loaded it a couple of times while viewing some nodes.
I noticed that the reload of the list itself also generated new log entries, despite the module having the "disable on admin pages" setting set. I tried debugging it for a while, but the logic for when it's on/off seems correct, so I couldn't figure out what was wrong, and switched back to using devel.
Comments
Comment #1
Fidelix CreditAttribution: Fidelix commentedI have this same problem...
Comment #2
msonnabaum CreditAttribution: msonnabaum commentedI just tested this and it's working as expected for me.
Should be pretty easy to debug though. Just see why xhprof_is_enabled() returns true.
Comment #3
erikwebb CreditAttribution: erikwebb commentedI don't see the problem either. Any chance your page has an AJAX call on it that's causing the new XHProf run?
Comment #4
Letharion CreditAttribution: Letharion commentedIt strikes me that it could have been APC acting up. I no longer use the module, so I can't tell at the moment, but when I was debugging, it seemed to me like the module was doing the right thing, and I got log entries anyway.
If APC was in reality doing something different from what I saw in the debugger, then maybe that's the cause.
I suppose there could have been ajax calls causing the problem.
Comment #5
erikwebb CreditAttribution: erikwebb commentedAJAX calls certainly would cause this problem.
Comment #6
Fidelix CreditAttribution: Fidelix commentedThis is happening everywhere, not just with Ajax calls.
Comment #7
erikwebb CreditAttribution: erikwebb commentedXHProf checks for the first argument to be "admin" and disables accordingly. Were you able to pin down any particular paths that are causing the problem?
Comment #8
erikwebb CreditAttribution: erikwebb commentedComment #9
Fidelix CreditAttribution: Fidelix commentedApparently admin_menu uses ajax calls all the time, so that might be the problem.
Comment #10
Letharion CreditAttribution: Letharion commentedI do use admin menu most of the time, so probably I was in this case as well.
Comment #11
erikwebb CreditAttribution: erikwebb commentedTry disabling Admin Menu and see if the probably disappears. In the meantime, I'll re-close this issue for now.
Comment #12
erikwebb CreditAttribution: erikwebb commented