From 36d973a0f81a604454615468fbfd40dc029b634e Mon Sep 17 00:00:00 2001 From: s-nakajima Date: Mon, 30 Apr 2018 15:44:41 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E9=80=9F=E5=BA=A6=E6=94=B9=E5=96=84?= =?UTF-8?q?=E3=81=AE=E3=83=AD=E3=82=B0=E5=87=BA=E5=8A=9B=E9=87=8F=E3=81=AB?= =?UTF-8?q?=E3=82=AB=E3=82=B9=E3=82=BF=E3=83=9E=E3=82=A4=E3=82=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Component/ControlPanelLayoutComponent.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Controller/Component/ControlPanelLayoutComponent.php b/Controller/Component/ControlPanelLayoutComponent.php index 1d6c31d..fe09b7a 100644 --- a/Controller/Component/ControlPanelLayoutComponent.php +++ b/Controller/Component/ControlPanelLayoutComponent.php @@ -10,6 +10,7 @@ */ App::uses('Component', 'Controller'); +App::uses('DebugTimer', 'DebugKit.Lib'); /** * ControlPanelLayoutComponent @@ -26,6 +27,34 @@ class ControlPanelLayoutComponent extends Component { */ public $plugins = null; +/** + * Called before the Controller::beforeFilter(). + * + * TODO: 当処理は、管理画面測定用なので、masterブランチにはコミットしない + * + * @param Controller $controller Controller with components to initialize + * @return void + * @link https://book.cakephp.org/2.0/en/controllers/components.html#Component::initialize + */ + public function initialize(Controller $controller) { + DebugTimer::start('plugin_timer', $controller->request->here); + parent::initialize($controller); + } + +/** + * Called after Controller::render() and before the output is printed to the browser. + * + * TODO: 当処理は、管理画面測定用なので、masterブランチにはコミットしない + * + * @param Controller $controller Controller with components to shutdown + * @return void + * @link https://book.cakephp.org/2.0/en/controllers/components.html#Component::shutdown + */ + public function shutdown(Controller $controller) { + parent::shutdown($controller); + DebugTimer::stop('plugin_timer'); + } + /** * beforeRender * From 11291f26ba3ece4cda87e52a62bc5654a62ca4f7 Mon Sep 17 00:00:00 2001 From: Shohei Nakajima Date: Sun, 10 Jun 2018 22:57:01 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Debug=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Component/ControlPanelLayoutComponent.php | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/Controller/Component/ControlPanelLayoutComponent.php b/Controller/Component/ControlPanelLayoutComponent.php index 764b315..93f0ba2 100644 --- a/Controller/Component/ControlPanelLayoutComponent.php +++ b/Controller/Component/ControlPanelLayoutComponent.php @@ -27,34 +27,6 @@ class ControlPanelLayoutComponent extends Component { */ public $plugins = null; -/** - * Called before the Controller::beforeFilter(). - * - * TODO: 当処理は、管理画面測定用なので、masterブランチにはコミットしない - * - * @param Controller $controller Controller with components to initialize - * @return void - * @link https://book.cakephp.org/2.0/en/controllers/components.html#Component::initialize - */ - public function initialize(Controller $controller) { - DebugTimer::start('plugin_timer', $controller->request->here); - parent::initialize($controller); - } - -/** - * Called after Controller::render() and before the output is printed to the browser. - * - * TODO: 当処理は、管理画面測定用なので、masterブランチにはコミットしない - * - * @param Controller $controller Controller with components to shutdown - * @return void - * @link https://book.cakephp.org/2.0/en/controllers/components.html#Component::shutdown - */ - public function shutdown(Controller $controller) { - parent::shutdown($controller); - DebugTimer::stop('plugin_timer'); - } - /** * beforeRender *