Description
Statistics the execution time of the begin position to the end position (in seconds), begin must be a marked position, and if the end position has not been marked at this time, the current position will be automatically marked as the end label. The default statistic precision is 4 digits after the decimal point
Example
Default form debug ("Begin"), $memberModel = Model (' Demo '), $memberList = $memberModel, Memberlist ();d ebug ("End"); Echo Debug ("Begin", "End"). " S ";
Output
0.009000s
Example 2
Specify the number of decimal places, 5 means 5 digits after the point debug ("Begin"), $memberModel = Model (' Demo '), $memberList = $memberModel, Memberlist ();d ebug (" End "), Echo debug (" Begin "," End ", 5)." S ";
Output 2
0.00900s
Example 3
Memory Overhead Statistics Debug ("Begin"), $memberModel = Model (' Demo '), $memberList = $memberModel, Memberlist ();d ebug ("End"); Echo Debug ("Begin", "End", "M");
Output 3
30.76 KB
This article is from the "Yan" blog, please be sure to keep this source http://suyanzhu.blog.51cto.com/8050189/1897292
thinkphp-Performance Tuning