function OpenTelemetryPerformanceTest::testFrontPageHotCache
Same name and namespace in other branches
- 11.x core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryPerformanceTest.php \Drupal\Tests\demo_umami\FunctionalJavascript\OpenTelemetryPerformanceTest::testFrontPageHotCache()
Logs front page tracing data with a hot cache.
Hot here means that all possible caches are warmed.
1 call to OpenTelemetryPerformanceTest::testFrontPageHotCache()
- OpenTelemetryPerformanceTest::testUmamiPerformance in core/
profiles/ demo_umami/ tests/ src/ FunctionalJavascript/ OpenTelemetryPerformanceTest.php - Test performance of various with various cache permutations.
File
-
core/
profiles/ demo_umami/ tests/ src/ FunctionalJavascript/ OpenTelemetryPerformanceTest.php, line 149
Class
- OpenTelemetryPerformanceTest
- Tests demo_umami profile performance.
Namespace
Drupal\Tests\demo_umami\FunctionalJavascriptCode
protected function testFrontPageHotCache() : void {
// The front page has already been warmed by ::testFrontPageCoolCache();
$performance_data = $this->collectPerformanceData(function () {
$this->drupalGet('<front>');
}, 'umamiFrontPageHotCache');
$this->assertSession()
->pageTextContains('Umami');
$this->assertMetricsByName('umamiFrontPageHotCache', $performance_data);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.