You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compatibility with new Tideways XHProf extension. (#3707)
* Compatibility with new Tideways XHProf extension.
* Code standard cleanup.
* Get tmp dir from Drush config.
* Added additional documentation about tideways_xhprof.
if (!extension_loaded('xhprof') && !extension_loaded('tideways')) {
67
-
thrownew \Exception(dt('You must enable the xhprof or tideways PHP extensions in your CLI PHP in order to profile.'));
76
+
if (!extension_loaded('xhprof') && !extension_loaded('tideways_xhprof')) {
77
+
if (extension_loaded('tideways')) {
78
+
thrownew \Exception(dt('You are using an older incompatible version of the tideways extension. Please upgrade to the new tideways_xhprof extension.'));
79
+
} else {
80
+
thrownew \Exception(dt('You must enable the xhprof or tideways_xhprof PHP extensions in your CLI PHP in order to profile.'));
81
+
}
68
82
}
69
83
returntrue;
70
84
}
85
+
returnfalse;
71
86
}
72
87
73
88
/**
74
89
* Determines flags.
90
+
*
91
+
* TODO: Make these work for Tideways as well.
75
92
*/
76
93
publicstaticfunctionxhprofFlags(array$config)
77
94
{
@@ -87,4 +104,34 @@ public static function xhprofFlags(array $config)
0 commit comments