Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds sub-options for xhprof_enable() flags. #2174

Merged
merged 1 commit into from
Jul 18, 2016
Merged

Adds sub-options for xhprof_enable() flags. #2174

merged 1 commit into from
Jul 18, 2016

Conversation

webbj74
Copy link
Contributor

@webbj74 webbj74 commented May 7, 2016

The function xhprof_enable() takes flags to control the profiling of CPU, memory, and PHP built-ins. This change would add a drush sub-option for each of the flags.

Related to how sub-options appear to work currently, see #2173.

if (!defined('XHPROF_FLAGS_NO_BUILTINS')) {
define('XHPROF_FLAGS_NO_BUILTINS', 1);
define('XHPROF_FLAGS_CPU', 2);
define('XHPROF_FLAGS_MEMORY', 3);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added these defines because xhprof is not installed by default on Travis CI. Additionally xhprof extension is not available on PHP 7 yet.

@weitzman weitzman merged commit c238906 into drush-ops:master Jul 18, 2016
@weitzman
Copy link
Member

This looks great. Sorry it took ages to review. Thanks for the test case as well.

mikeker pushed a commit to mikeker/drush that referenced this pull request Aug 10, 2017
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