diff --git a/system/View/View.php b/system/View/View.php
index <HASH>..<HASH> 100644
--- a/system/View/View.php
+++ b/system/View/View.php
@@ -206,6 +206,8 @@ class View implements RendererInterface
 		$output = ob_get_contents();
 		@ob_end_clean();
 
+		$this->logPerformance($start, microtime(true), $view);
+
 		if (CI_DEBUG)
 		{
 			$after = (new \Config\Filters())->globals['after'];
@@ -230,8 +232,6 @@ class View implements RendererInterface
 			}
 		}
 
-		$this->logPerformance($start, microtime(true), $view);
-
 		// Should we cache?
 		if (isset($options['cache']))
 		{
Logs view performance data before render the view hints