Profiling shows more than 100% spent in function
Profiling a PHP application with Xdebug and KCacheGrind shows over 150% than (inclusive) spent in some functions. The app uses Smarty 3 and the strange functions are always in calls related to template processing. There are lots of loops in that area because of Smarty plugins loading other templates. Has anyone else met this phenomenon? Is it a problem with Xdebug somehow not being able to profile correctly the PHP files generated by Smarty, or KCacheGrind being confused by loops? How reliable is the conclusion that Smarty is the bottl开发者_开发百科eneck?
Images:
- Smarty::fetch compared to index.php
- Smarty::fetch compared to itself
Profiling is currently broken in xdebug, see https://bugs.kde.org/show_bug.cgi?id=256425 - you may be experiencing that bug.
精彩评论