2011-01-13 116 views
2

好吧!了解xdebug跟踪日志

我知道有些人会在我身上发痒,但是,我试图寻找,找不到任何东西,所以我问这个。

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

这是从我的跟踪日志线。前三个数字意味着什么?

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

MongoCollection->findOne()是函数的名称,

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

0.49172292504+1288是什么意思?

谢谢。

回答

6
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 
+0

你得到它.... – Ish 2011-01-13 21:55:01