Projects
Infrastructure
libphutil
0002-Remove-xhprof-dependency.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-Remove-xhprof-dependency.patch of Package libphutil
From 378c1363193560878b3d8065054eedc426be8e88 Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com> Date: Tue, 9 Aug 2016 19:31:50 +0200 Subject: [PATCH 2/3] Remove xhprof dependency --- resources/php_compat_info.json | 49 ---------------------------- src/parser/argument/PhutilArgumentParser.php | 23 ------------- 2 files changed, 72 deletions(-) diff --git a/resources/php_compat_info.json b/resources/php_compat_info.json index e9c3145..1731719 100644 --- a/resources/php_compat_info.json +++ b/resources/php_compat_info.json @@ -19493,34 +19493,6 @@ "php.min": "4.3.0", "php.max": null }, - "xhprof_disable": { - "ext.name": "xhprof", - "ext.min": "0.9.0", - "ext.max": null, - "php.min": "5.2.0", - "php.max": null - }, - "xhprof_enable": { - "ext.name": "xhprof", - "ext.min": "0.9.0", - "ext.max": null, - "php.min": "5.2.0", - "php.max": null - }, - "xhprof_sample_disable": { - "ext.name": "xhprof", - "ext.min": "0.9.0", - "ext.max": null, - "php.min": "5.2.0", - "php.max": null - }, - "xhprof_sample_enable": { - "ext.name": "xhprof", - "ext.min": "0.9.0", - "ext.max": null, - "php.min": "5.2.0", - "php.max": null - }, "xml_error_string": { "ext.name": "xml", "ext.min": "4.0.0", @@ -45182,27 +45154,6 @@ "php.min": "5.4.0", "php.max": null }, - "XHPROF_FLAGS_CPU": { - "ext.name": "xhprof", - "ext.min": "0.9.0", - "ext.max": null, - "php.min": "5.2.0", - "php.max": null - }, - "XHPROF_FLAGS_MEMORY": { - "ext.name": "xhprof", - "ext.min": "0.9.0", - "ext.max": null, - "php.min": "5.2.0", - "php.max": null - }, - "XHPROF_FLAGS_NO_BUILTINS": { - "ext.name": "xhprof", - "ext.min": "0.9.0", - "ext.max": null, - "php.min": "5.2.0", - "php.max": null - }, "XML_ATTRIBUTE_CDATA": { "ext.name": "dom", "ext.min": "5.0.0", diff --git a/src/parser/argument/PhutilArgumentParser.php b/src/parser/argument/PhutilArgumentParser.php index f554d65..f26503b 100644 --- a/src/parser/argument/PhutilArgumentParser.php +++ b/src/parser/argument/PhutilArgumentParser.php @@ -448,12 +448,9 @@ final class PhutilArgumentParser extends Phobject { * * --trace Enable service call tracing. * --no-ansi Disable ANSI color/style sequences. - * --xprofile <file> Write out an XHProf profile. * --help Show help. * * @return this - * - * @phutil-external-symbol function xhprof_enable */ public function parseStandardArguments() { try { @@ -528,17 +525,6 @@ final class PhutilArgumentParser extends Phobject { $this->showHelp = true; } - $xprofile = $this->getArg('xprofile'); - if ($xprofile) { - if (!function_exists('xhprof_enable')) { - throw new Exception( - pht("To use '%s', you must install XHProf.", '--xprofile')); - } - - xhprof_enable(0); - register_shutdown_function(array($this, 'shutdownProfiler')); - } - $recon = $this->getArg('recon'); if ($recon) { $remote_console = PhutilConsole::newRemoteConsole(); @@ -854,15 +840,6 @@ final class PhutilArgumentParser extends Phobject { return phutil_console_wrap($text, $level); } - /** - * @phutil-external-symbol function xhprof_disable - */ - public function shutdownProfiler() { - $data = xhprof_disable(); - $data = json_encode($data); - Filesystem::writeFile($this->getArg('xprofile'), $data); - } - public static function isTraceModeEnabled() { return self::$traceModeEnabled; } -- 2.7.4
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.