From e34ae854cd8622a549f1717f75467c1b04549019 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Thu, 12 Apr 2018 09:57:31 -0400 Subject: [PATCH] Added more info regarding where and when a memory or time report occurs with Front Debug. --- controllers/front.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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); -- 2.17.1