【问题标题】:Understanding the xdebug trace log了解 xdebug 跟踪日志
【发布时间】:2011-01-13 21:47:38
【问题描述】:

好的!

我知道有些人会生我的气,但是,我尝试搜索,找不到任何东西,所以我问这个。

0.4917 2292504 +1288 -> MongoCollection->findOne() /var/www/public_html/s.php:157

这是我的跟踪日志中的一行。前三个数字是什么意思?

我的 php.ini 中有 xdebug.show_mem_delta=On

MongoCollection->findOne()是函数名,

/var/www/public_html/s.php:157 是文件:行。

0.4917,2292504,+1288 是什么意思?

谢谢。

【问题讨论】:

    标签: php xdebug


    【解决方案1】:
    0.4917   Execution time
    2292504  Memory usage
    1288     Change in memory since last output
    

    来自http://www.xdebug.org/docs/execution_trace 示例,打开了 mem_delta,

    0.0003     114112  +114112   -> {main}() ../trace.php:0
    0.0004     114272     +160     -> str_split('Xdebug') ../trace.php:8
    0.0007     117424    +3152     -> ret_ord($c = 'X') ../trace.php:10
    
    //114112 = 114112 - 0
    //160 = 114272 - 114112
    //3152 = 117424 - 114272
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-06-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-05
      • 2017-06-19
      • 2020-07-27
      • 1970-01-01
      相关资源
      最近更新 更多