Run Report
Run #560d7dac0c098: XHProf Run (Namespace=drupal-perf-cottser)
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::optimizeTokens35 2.8% 3,670 0.2% 203,504 0.5% 0 0.0%
Exclusive Metrics for Current Function1,343 36.6% -58,464 -28.7% 0 N/A%
Parent functions
Drupal\Core\Cache\Context\CacheContextsManager::convertTokensToKeys34 97.1% 3,168 86.3% 182,632 89.7% 0 N/A%
Drupal\Core\EventSubscriber\FinishResponseSubscriber::onRespond1 2.9% 502 13.7% 20,872 10.3% 0 N/A%
Child functions
Drupal\Core\Cache\Context\CacheContextsManager::getService92 7.6% 1,863 50.8% 160,584 78.9% 0 N/A%
Drupal\Core\Cache\Context\AccountPermissionsCacheContext::getCacheableMetadata34 2.8% 388 10.6% 29,688 14.6% 0 N/A%
Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext::getCacheableMetadata16 1.3% 41 1.1% 10,296 5.1% 0 N/A%
Drupal\Core\Cache\Context\UserRolesCacheContext::getCacheableMetadata3 0.2% 18 0.5% 4,288 2.1% 0 N/A%
str_replace92 7.6% 7 0.2% 13,264 6.5% 0 N/A%
in_array111 9.2% 6 0.2% 672 0.3% 0 N/A%
explode54 4.5% 3 0.1% 28,432 14.0% 0 N/A%
Drupal\Core\Cache\Context\RouteCacheContext::getCacheableMetadata1 0.1% 1 0.0% 864 0.4% 0 N/A%
Drupal\Core\Cache\Context\QueryArgsCacheContext::getCacheableMetadata2 0.2% 0 0.0% 1,000 0.5% 0 N/A%
Drupal\Core\Cache\Context\PathCacheContext::getCacheableMetadata2 0.2% 0 0.0% 1,008 0.5% 0 N/A%
substr111 9.2% 0 0.0% 4,472 2.2% 0 N/A%
Drupal\Core\Cache\Context\LanguagesCacheContext::getCacheableMetadata34 2.8% 0 0.0% 5,352 2.6% 0 N/A%
Drupal\Core\Cache\CacheableMetadata::getCacheMaxAge92 7.6% 0 0.0% 712 0.3% 0 N/A%
strrpos111 9.2% 0 0.0% 672 0.3% 0 N/A%
strpos456 37.7% 0 0.0% 664 0.3% 0 N/A%