Run Report
Run #560831fb3d4d9: 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% 8,040 0.8% 190,192 0.6% 147,224 0.5%
Exclusive Metrics for Current Function4,688 58.3% -180,056 -94.7% 1,808 1.2%
Parent functions
Drupal\Core\Cache\Context\CacheContextsManager::convertTokensToKeys130 99.2% 7,753 96.4% 188,304 99.0% 147,224 100.0%
Drupal\Core\EventSubscriber\FinishResponseSubscriber::onRespond1 0.8% 287 3.6% 1,888 1.0% 0 0.0%
Child functions
Drupal\Core\Cache\Context\CacheContextsManager::getService305 7.7% 1,639 20.4% 90,552 47.6% 138,440 94.0%
Drupal\Core\Cache\Context\AccountPermissionsCacheContext::getCacheableMetadata129 3.2% 1,527 19.0% 99,232 52.2% 4,560 3.1%
Drupal\node\Cache\NodeAccessGrantsCacheContext::getCacheableMetadata4 0.1% 59 0.7% 3,392 1.8% 0 0.0%
Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext::getCacheableMetadata20 0.5% 43 0.5% 12,432 6.5% 96 0.1%
Drupal\Core\Cache\Context\UserRolesCacheContext::getCacheableMetadata5 0.1% 29 0.4% 5,328 2.8% 0 0.0%
in_array334 8.4% 20 0.2% 672 0.4% 0 0.0%
explode164 4.1% 12 0.1% 85,008 44.7% 1,880 1.3%
substr334 8.4% 12 0.1% 11,840 6.2% 0 0.0%
str_replace305 7.7% 6 0.1% 36,048 19.0% 440 0.3%
Drupal\Core\Cache\Context\LanguagesCacheContext::getCacheableMetadata133 3.3% 5 0.1% 18,880 9.9% 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\PathCacheContext::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%
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%
Drupal\Core\Cache\Context\SiteCacheContext::getCacheableMetadata3 0.1% 0 0.0% 1,136 0.6% 0 0.0%