$ xenon-grep --entrypoint=api --resolution=daily --count=10 Top 10 functions, api.php: -------------------------- 1 | Elastica\Request::send | 18.68% 2 | MediaWiki\Logger\LoggerFactory::getInstance | 7.73% 3 | LuaSandboxFunction::call | 3.63% 4 | ApiQueryBase::select | 2.76% 5 | Preprocessor_Hash::preprocessToObj | 2.69% 6 | LinkCache::addLinkObj | 2.39% 7 | Revision::fetchFromConds | 2.25% 8 | LuaSandbox::loadString | 2.08% 9 | File::getDescriptionText | 1.97% 10 | Revision::loadText | 1.88% -------------------------- Log files: - /srv/xenon/logs/daily/2015-10-15.api.log - /srv/xenon/logs/daily/2015-10-16.api.log
< ori> bd808: functions that get called very often but which run very quickly don't tend to show up in the leaderboard; it usually indicates that the function is not only called frequently but that it is slow as well
< ori> bd808: this is aggregating by the top (on-cpu) frame in the stack, minus some exclusions (like mysqli_query -- things where we'd rather know the caller)
< bd808> right, so it's basically counting on statistical modeling to tell us what is slow. We can look at it for sure