Run Report
Run #55f250764a275: 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::optimizeTokens65 3.5% 4,658 0.8% 148,288 0.6% 112,320 0.4%
Exclusive Metrics for Current Function2,632 56.5% -71,576 -48.3% 1,944 1.7%
Parent functions
Drupal\Core\Cache\Context\CacheContextsManager::convertTokensToKeys64 98.5% 4,322 92.8% 146,400 98.7% 112,320 100.0%
Drupal\Core\EventSubscriber\FinishResponseSubscriber::onRespond1 1.5% 336 7.2% 1,888 1.3% 0 0.0%
Child functions
Drupal\Core\Cache\Context\CacheContextsManager::getService128 7.1% 1,428 30.7% 88,480 59.7% 104,936 93.4%
Drupal\Core\Cache\Context\AccountPermissionsCacheContext::getCacheableMetadata18 1.0% 325 7.0% 18,424 12.4% 2,488 2.2%
Drupal\node\Cache\NodeAccessGrantsCacheContext::getCacheableMetadata4 0.2% 68 1.5% 3,392 2.3% 0 0.0%
Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext::getCacheableMetadata20 1.1% 63 1.4% 12,432 8.4% 96 0.1%
str_replace128 7.1% 42 0.9% 17,440 11.8% 600 0.5%
in_array157 8.7% 36 0.8% 672 0.5% 0 0.0%
Drupal\Core\Cache\Context\UserRolesCacheContext::getCacheableMetadata5 0.3% 33 0.7% 5,328 3.6% 0 0.0%
explode98 5.4% 17 0.4% 50,952 34.4% 2,256 2.0%
Drupal\Core\Cache\Context\LanguagesCacheContext::getCacheableMetadata67 3.7% 12 0.3% 9,840 6.6% 0 0.0%
substr157 8.7% 1 0.0% 6,040 4.1% 0 0.0%
Drupal\Core\Cache\Context\QueryArgsCacheContext::getCacheableMetadata6 0.3% 1 0.0% 1,544 1.0% 0 0.0%
Drupal\Core\Cache\Context\RouteCacheContext::getCacheableMetadata2 0.1% 0 0.0% 1,000 0.7% 0 0.0%
Drupal\Core\Cache\Context\PathCacheContext::getCacheableMetadata3 0.2% 0 0.0% 1,136 0.8% 0 0.0%
Drupal\Core\Cache\Context\SiteCacheContext::getCacheableMetadata3 0.2% 0 0.0% 1,136 0.8% 0 0.0%
Drupal\Core\Cache\CacheableMetadata::getCacheMaxAge128 7.1% 0 0.0% 712 0.5% 0 0.0%
strrpos157 8.7% 0 0.0% 672 0.5% 0 0.0%
strpos723 40.1% 0 0.0% 664 0.4% 0 0.0%