Run Report
Run #5608311397db4: 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,902 0.8% 190,176 0.6% 147,616 0.5%
Exclusive Metrics for Current Function4,564 57.8% -180,432 -94.9% 1,808 1.2%
Parent functions
Drupal\Core\Cache\Context\CacheContextsManager::convertTokensToKeys130 99.2% 7,619 96.4% 188,288 99.0% 147,616 100.0%
Drupal\Core\EventSubscriber\FinishResponseSubscriber::onRespond1 0.8% 283 3.6% 1,888 1.0% 0 0.0%
Child functions
Drupal\Core\Cache\Context\CacheContextsManager::getService305 7.7% 1,710 21.6% 90,568 47.6% 138,832 94.0%
Drupal\Core\Cache\Context\AccountPermissionsCacheContext::getCacheableMetadata129 3.2% 1,468 18.6% 99,176 52.1% 4,560 3.1%
Drupal\node\Cache\NodeAccessGrantsCacheContext::getCacheableMetadata4 0.1% 56 0.7% 3,392 1.8% 0 0.0%
Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext::getCacheableMetadata20 0.5% 44 0.6% 12,432 6.5% 96 0.1%
Drupal\Core\Cache\Context\UserRolesCacheContext::getCacheableMetadata5 0.1% 28 0.4% 5,328 2.8% 0 0.0%
in_array334 8.4% 18 0.2% 672 0.4% 0 0.0%
str_replace305 7.7% 6 0.1% 36,032 18.9% 440 0.3%
explode164 4.1% 6 0.1% 85,168 44.8% 1,880 1.3%
Drupal\Core\Cache\Context\LanguagesCacheContext::getCacheableMetadata133 3.3% 2 0.0% 18,952 10.0% 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% 12,024 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%