Skip to content

Add an option to control xhprof enable conditions#69

Open
AlloVince wants to merge 2 commits into
gajus:masterfrom
EvaEngine:master
Open

Add an option to control xhprof enable conditions#69
AlloVince wants to merge 2 commits into
gajus:masterfrom
EvaEngine:master

Conversation

@AlloVince

Copy link
Copy Markdown

No description provided.

@staabm

staabm commented Nov 13, 2014

Copy link
Copy Markdown
Contributor

IIRC most of this functionality is already provided in https://github.com/staabm/xhprof.io

@AlloVince

Copy link
Copy Markdown
Author

@staabm above repo looks like just use a key value to control the profiler, my way is use a closure, it will be more flexible

@staabm

staabm commented Nov 13, 2014

Copy link
Copy Markdown
Contributor

@AlloVince the related config file is loaded using require therefore it can contain any logic you like, e.g.

return array(
    'enabled' => rand(0, 100) === 42;
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants