Run Report
Run #560d810c7abba: 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,849 0.2% 203,504 0.5% 0 0.0%
Exclusive Metrics for Current Function1,359 35.3% -58,464 -28.7% 0 N/A%
Parent functions
Drupal\Core\Cache\Context\CacheContextsManager::convertTokensToKeys34 97.1% 3,341 86.8% 182,632 89.7% 0 N/A%
Drupal\Core\EventSubscriber\FinishResponseSubscriber::onRespond1 2.9% 508 13.2% 20,872 10.3% 0 N/A%
Child functions
Drupal\Core\Cache\Context\CacheContextsManager::getService92 7.6% 2,021 52.5% 160,584 78.9% 0 N/A%
Drupal\Core\Cache\Context\AccountPermissionsCacheContext::getCacheableMetadata34 2.8% 386 10.0% 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% 20 0.5% 4,288 2.1% 0 N/A%
strpos456 37.7% 8 0.2% 664 0.3% 0 N/A%
str_replace92 7.6% 8 0.2% 13,264 6.5% 0 N/A%
in_array111 9.2% 4 0.1% 672 0.3% 0 N/A%
explode54 4.5% 2 0.1% 28,432 14.0% 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%
Drupal\Core\Cache\Context\RouteCacheContext::getCacheableMetadata1 0.1% 0 0.0% 864 0.4% 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%