Run Report
Run #55a8732244c39: XHProf Run (Namespace=drupal-perf-lauriii)
Tip
Click a function name below to drill down.

Parent/Child report for Drupal\Core\Cache\Context\CacheContextsManager::optimizeTokens [View Callgraph ]


Function NameCallsCalls%Incl. Wall Time
(microsec)
IWall%Incl.
MemUse
(bytes)
IMemUse%Incl.
PeakMemUse
(bytes)
IPeakMemUse%
Current Function
Drupal\Core\Cache\Context\CacheContextsManager::optimizeTokens9 2.1% 810 1.1% 98,960 0.6% 77,152 0.5%
Exclusive Metrics for Current Function396 48.9% -16,640 -16.8% 6,200 8.0%
Parent functions
Drupal\Core\Cache\Context\CacheContextsManager::convertTokensToKeys8 88.9% 626 77.3% 81,688 82.5% 67,992 88.1%
Drupal\Core\EventSubscriber\FinishResponseSubscriber::onRespond1 11.1% 184 22.7% 17,272 17.5% 9,160 11.9%
Child functions
Drupal\Core\Cache\Context\CacheContextsManager::getService31 7.5% 339 41.9% 74,488 75.3% 56,872 73.7%
Drupal\Core\Cache\Context\AccountPermissionsCacheContext::getCacheableMetadata9 2.2% 57 7.0% 9,608 9.7% 5,280 6.8%
Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext::getCacheableMetadata9 2.2% 18 2.2% 6,560 6.6% 1,936 2.5%
in_array43 10.4% 0 0.0% 672 0.7% 528 0.7%
Drupal\Core\Cache\Context\UserRolesCacheContext::getCacheableMetadata3 0.7% 0 0.0% 1,136 1.1% 0 0.0%
Drupal\Core\Cache\Context\RouteCacheContext::getCacheableMetadata1 0.2% 0 0.0% 864 0.9% 416 0.5%
substr43 10.4% 0 0.0% 2,184 2.2% 664 0.9%
strrpos43 10.4% 0 0.0% 672 0.7% 624 0.8%
explode21 5.1% 0 0.0% 11,472 11.6% 1,640 2.1%
Drupal\Core\Cache\Context\LanguagesCacheContext::getCacheableMetadata9 2.2% 0 0.0% 1,952 2.0% 736 1.0%
Drupal\Core\Cache\CacheableMetadata::getCacheMaxAge31 7.5% 0 0.0% 712 0.7% 616 0.8%
str_replace31 7.5% 0 0.0% 4,616 4.7% 976 1.3%
strpos141 34.0% 0 0.0% 664 0.7% 664 0.9%