function PerformanceTestRecorder::onRouteBuilderFinish

Same name in other branches
  1. 10 core/lib/Drupal/Core/Test/PerformanceTestRecorder.php \Drupal\Core\Test\PerformanceTestRecorder::onRouteBuilderFinish()
  2. 11.x core/lib/Drupal/Core/Test/PerformanceTestRecorder.php \Drupal\Core\Test\PerformanceTestRecorder::onRouteBuilderFinish()

Records a router rebuild.

File

core/lib/Drupal/Core/Test/PerformanceTestRecorder.php, line 75

Class

PerformanceTestRecorder
Records the number of times specific events occur.

Namespace

Drupal\Core\Test

Code

public function onRouteBuilderFinish() {
    $this->record('event', RoutingEvents::FINISHED);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.