@@ -140,16 +140,16 @@ |
||
| 140 | 140 | $sample = new DataSample([ |
| 141 | 141 | 'requestId' => Webperf::$requestUuid, |
| 142 | 142 | 'url' => Webperf::$requestUrl ?? DataSample::PLACEHOLDER_URL, |
| 143 | - 'craftTotalMs' => (int)($stats['database']['duration'] |
|
| 143 | + 'craftTotalMs' => (int) ($stats['database']['duration'] |
|
| 144 | 144 | + $stats['twig']['duration'] |
| 145 | 145 | + $stats['other']['duration']), |
| 146 | - 'craftDbMs' => (int)$stats['database']['duration'], |
|
| 147 | - 'craftDbCnt' => (int)$stats['database']['count'], |
|
| 148 | - 'craftTwigMs' => (int)$stats['twig']['duration'], |
|
| 149 | - 'craftTwigCnt' => (int)$stats['twig']['count'], |
|
| 150 | - 'craftOtherMs' => (int)$stats['other']['duration'], |
|
| 151 | - 'craftOtherCnt' => (int)$stats['other']['count'], |
|
| 152 | - 'craftTotalMemory' => (int)($stats['database']['memory'] |
|
| 146 | + 'craftDbMs' => (int) $stats['database']['duration'], |
|
| 147 | + 'craftDbCnt' => (int) $stats['database']['count'], |
|
| 148 | + 'craftTwigMs' => (int) $stats['twig']['duration'], |
|
| 149 | + 'craftTwigCnt' => (int) $stats['twig']['count'], |
|
| 150 | + 'craftOtherMs' => (int) $stats['other']['duration'], |
|
| 151 | + 'craftOtherCnt' => (int) $stats['other']['count'], |
|
| 152 | + 'craftTotalMemory' => (int) ($stats['database']['memory'] |
|
| 153 | 153 | + $stats['twig']['memory'] |
| 154 | 154 | + $stats['other']['memory']), |
| 155 | 155 | ]); |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | |
| 74 | 74 | // Render the template with our vars passed in |
| 75 | 75 | try { |
| 76 | - $htmlText = Craft::$app->view->renderTemplate('webperf/' . $templatePath, $params); |
|
| 76 | + $htmlText = Craft::$app->view->renderTemplate('webperf/'.$templatePath, $params); |
|
| 77 | 77 | if ($minifier) { |
| 78 | 78 | // If SEOmatic is installed, get the title from it |
| 79 | 79 | $minify = Craft::$app->getPlugins()->getPlugin(self::MINIFY_PLUGIN_HANDLE); |