Allow to toggel xhprof using a cookie.

Created on 14 October 2015, about 9 years ago
Updated 13 June 2024, 6 months ago

Problem/Motivation

Currently there's basically an all or nothing for the profiling.
Enable it everywhere or nowhere - well there's an exception for admin paths ;)
It would be nice if we could use a cookie to enable the profiling for dedicated requests.

Proposed resolution

Add an option to only enable profiling if a specific cookie is set.
I suggest the cookie name XHProf_Profile because this name is supported by browser extensions for Chrome and Firefox

The attached patch also adds a hook_uninstall() implementation to clean the variables defined by this module.

Remaining tasks

Reviews needed.

User interface changes

New option on the settings page.

API changes

Data model changes

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇨🇭Switzerland das-peter

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024