Right now the xhprof.inc file is being included on every single request even though it may not be necessary. Would be nice if we could remove that require_once and use the logic in xhprof_include() instead.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | XHProf-dont_load_xhprof_inc_unless_necessary-1715426-2.patch | 765 bytes | erikwebb |
Comments
Comment #1
dave reidNote that this also causes conflicts if you have both xhprof and devel modules enabled, and have xhprof profiling enabled for devel, but not for xhprof.module.
Comment #2
erikwebb commentedComment #3
msonnabaum commentedPatch in #2 doesn't quite work. Can't rely on the return of xhprof_xhprof_enable() to do the include because you may be viewing runs when profiling isn't enabled.
Just committed a similar patch which should work a bit better. Thanks!