Run Report
Run #5659123816918: 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::optimizeTokens37 4.3% 2,404 0.4% 101,216 0.3% 35,472 0.1%
Exclusive Metrics for Current Function1,269 52.8% -26,624 -26.3% 0 0.0%
Parent function
Drupal\Core\Cache\Context\CacheContextsManager::convertTokensToKeys37 100.0% 2,404 100.0% 101,216 100.0% 35,472 100.0%
Child functions
Drupal\Core\Cache\Context\CacheContextsManager::getService54 6.7% 951 39.6% 63,352 62.6% 35,472 100.0%
Drupal\Core\Cache\Context\AccountPermissionsCacheContext::getCacheableMetadata4 0.5% 93 3.9% 8,568 8.5% 0 0.0%
Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext::getCacheableMetadata12 1.5% 55 2.3% 8,160 8.1% 0 0.0%
str_replace54 6.7% 13 0.5% 6,456 6.4% 0 0.0%
Drupal\Core\Cache\Context\UserRolesCacheContext::getCacheableMetadata1 0.1% 9 0.4% 3,248 3.2% 0 0.0%
in_array67 8.3% 6 0.2% 672 0.7% 0 0.0%
strpos346 42.6% 3 0.1% 664 0.7% 0 0.0%
explode49 6.0% 3 0.1% 25,848 25.5% 0 0.0%
Drupal\Core\Cache\Context\LanguagesCacheContext::getCacheableMetadata36 4.4% 2 0.1% 5,624 5.6% 0 0.0%
Drupal\Core\Cache\Context\PathCacheContext::getCacheableMetadata1 0.1% 0 0.0% 864 0.9% 0 0.0%
strrpos67 8.3% 0 0.0% 672 0.7% 0 0.0%
Drupal\Core\Cache\CacheableMetadata::getCacheMaxAge54 6.7% 0 0.0% 712 0.7% 0 0.0%
substr67 8.3% 0 0.0% 3,000 3.0% 0 0.0%