From: Chuck Scott Date: Thu, 12 Apr 2018 13:57:31 +0000 (-0400) Subject: Added more info regarding where and when a memory or time report occurs with Front... X-Git-Tag: v2.10.30^2~8 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e34ae854cd8622a549f1717f75467c1b04549019;p=WP-Plugins%2Fglm-member-db.git Added more info regarding where and when a memory or time report occurs with Front Debug. --- diff --git a/controllers/front.php b/controllers/front.php index 165648b0..ea13c493 100644 --- a/controllers/front.php +++ b/controllers/front.php @@ -290,12 +290,13 @@ class glmMembersFront extends GlmPluginSupport $oldErrorLogSetting = error_reporting(); error_reporting(E_ALL); - // Report current memory - trigger_error(glmAssociateMemoryUsage(),E_USER_NOTICE); - // Setup for reports at end of controller $controllerShortcode = $shortcode; $controllerStartTime = microtime(true); + + // Report current memory + trigger_error(glmAssociateMemoryUsage()." - START Shortcode: $controllerShortcode",E_USER_NOTICE); + } // Start with no cache_code - This prevents caching for subordinate controller hits @@ -680,7 +681,7 @@ class glmMembersFront extends GlmPluginSupport } if (GLM_MEMBERS_PLUGIN_FRONT_DEBUG) { - trigger_error(glmAssociateMemoryUsage(),E_USER_NOTICE); + trigger_error(glmAssociateMemoryUsage()." - END Shortcode: $controllerShortcode",E_USER_NOTICE); $controllerTime = round(microtime(true) - $controllerStartTime, 6); trigger_error($controllerTime." seconds - Shortcode: $controllerShortcode, Model class: $className ---", E_USER_NOTICE);