public function RuntimeMeasurementInterface::stop in Purge 8.3
Stop measuring execution time and store if necessary.
To gather safe time hint measurements, the following rules apply:
- All invalidations MUST have ::SUCCEEDED, if any of them failed the measurement will not be saved as it is likely unrepresentative data.
- Measurements slower than previous records take priority. This means that a single slow (yet successful) performance will relentlessly adjust the measurement upwards, better safe...
- Every faster measurement than previously stored records leads to 10% reduction of the last recorded measurement. This means structural low performance will be rewarded by more capacity, but slow and carefully!
Parameters
\Drupal\purge\Plugin\Purge\Invalidation\InvalidationInterface[] $invalidations: Non-associative array of processed invalidation objects.
Throws
\LogicException Thrown when the $invalidations parameter is empty.
\LogicException Thrown when any invalidation isn't a InvalidationInterface instance.
\LogicException Thrown when ::start() hasn't been called yet.
1 method overrides RuntimeMeasurementInterface::stop()
- RuntimeMeasurement::stop in src/
Plugin/ Purge/ Purger/ RuntimeMeasurement.php - Stop measuring execution time and store if necessary.
File
- src/
Plugin/ Purge/ Purger/ RuntimeMeasurementInterface.php, line 59
Class
- RuntimeMeasurementInterface
- Describes a execution time measurer for invalidation processing.
Namespace
Drupal\purge\Plugin\Purge\PurgerCode
public function stop(array $invalidations);