From 064e9464bc6ebe55a9233d102aff48262f747dea Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 18 Jun 2018 12:27:51 +0100 Subject: [PATCH] Removed --enable-profiler CLI option krakjoe's profiler hasn't been updated since 2013. I doubt it's going to get updated in the near future. These days we use xdebug, which is either always on or always off. --- src/pocketmine/PocketMine.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/pocketmine/PocketMine.php b/src/pocketmine/PocketMine.php index cc353b1c0..94f21d58d 100644 --- a/src/pocketmine/PocketMine.php +++ b/src/pocketmine/PocketMine.php @@ -169,7 +169,7 @@ namespace pocketmine { define('pocketmine\RESOURCE_PATH', \pocketmine\PATH . 'src' . DIRECTORY_SEPARATOR . 'pocketmine' . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR); - $opts = getopt("", ["data:", "plugins:", "no-wizard", "enable-profiler"]); + $opts = getopt("", ["data:", "plugins:", "no-wizard"]); define('pocketmine\DATA', isset($opts["data"]) ? $opts["data"] . DIRECTORY_SEPARATOR : realpath(getcwd()) . DIRECTORY_SEPARATOR); define('pocketmine\PLUGIN_PATH', isset($opts["plugins"]) ? $opts["plugins"] . DIRECTORY_SEPARATOR : realpath(getcwd()) . DIRECTORY_SEPARATOR . "plugins" . DIRECTORY_SEPARATOR); @@ -189,15 +189,6 @@ namespace pocketmine { } unset($tzError); - if(isset($opts["enable-profiler"])){ - if(function_exists("profiler_enable")){ - \profiler_enable(); - $logger->notice("Execution is being profiled"); - }else{ - $logger->notice("No profiler found. Please install https://github.com/krakjoe/profiler"); - } - } - if(extension_loaded("xdebug")){ $logger->warning(PHP_EOL . PHP_EOL . PHP_EOL . "\tYou are running " . \pocketmine\NAME . " with xdebug enabled. This has a major impact on performance." . PHP_EOL . PHP_EOL); }