Run Report
Run #5608318a89619: XHProf Run (Namespace=drupal-perf-joelpittet)
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::optimizeTokens131 3.2% 7,925 0.8% 190,184 0.6% 147,328 0.5%
Exclusive Metrics for Current Function4,617 58.3% -179,792 -94.5% 1,808 1.2%
Parent functions
Drupal\Core\Cache\Context\CacheContextsManager::convertTokensToKeys130 99.2% 7,631 96.3% 188,296 99.0% 147,328 100.0%
Drupal\Core\EventSubscriber\FinishResponseSubscriber::onRespond1 0.8% 294 3.7% 1,888 1.0% 0 0.0%
Child functions
Drupal\Core\Cache\Context\CacheContextsManager::getService305 7.7% 1,663 21.0% 90,592 47.6% 138,592 94.1%
Drupal\Core\Cache\Context\AccountPermissionsCacheContext::getCacheableMetadata129 3.2% 1,477 18.6% 98,968 52.0% 4,608 3.1%
Drupal\node\Cache\NodeAccessGrantsCacheContext::getCacheableMetadata4 0.1% 58 0.7% 3,392 1.8% 0 0.0%
Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext::getCacheableMetadata20 0.5% 46 0.6% 12,440 6.5% 104 0.1%
Drupal\Core\Cache\Context\UserRolesCacheContext::getCacheableMetadata5 0.1% 28 0.4% 5,328 2.8% 0 0.0%
in_array334 8.4% 20 0.3% 672 0.4% 0 0.0%
explode164 4.1% 7 0.1% 84,984 44.7% 1,832 1.2%
str_replace305 7.7% 5 0.1% 35,976 18.9% 384 0.3%
Drupal\Core\Cache\Context\LanguagesCacheContext::getCacheableMetadata133 3.3% 4 0.1% 18,856 9.9% 0 0.0%
Drupal\Core\Cache\Context\PathCacheContext::getCacheableMetadata3 0.1% 0 0.0% 1,136 0.6% 0 0.0%
Drupal\Core\Cache\Context\RouteCacheContext::getCacheableMetadata2 0.1% 0 0.0% 1,000 0.5% 0 0.0%
Drupal\Core\Cache\Context\SiteCacheContext::getCacheableMetadata3 0.1% 0 0.0% 1,136 0.6% 0 0.0%
Drupal\Core\Cache\CacheableMetadata::getCacheMaxAge305 7.7% 0 0.0% 712 0.4% 0 0.0%
substr334 8.4% 0 0.0% 11,904 6.3% 0 0.0%
strpos1,587 39.9% 0 0.0% 664 0.3% 0 0.0%
Drupal\Core\Cache\Context\QueryArgsCacheContext::getCacheableMetadata6 0.2% 0 0.0% 1,544 0.8% 0 0.0%
strrpos334 8.4% 0 0.0% 672 0.4% 0 0.0%