Added more info regarding where and when a memory or time report occurs with Front...
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 12 Apr 2018 13:57:31 +0000 (09:57 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 12 Apr 2018 13:57:31 +0000 (09:57 -0400)
controllers/front.php

index 165648b..ea13c49 100644 (file)
@@ -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);