开发者

Profiling shows more than 100% spent in function

开发者 https://www.devze.com 2023-02-17 11:59 出处:网络
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 templat

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号