thinkphp-Performance Tuning

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.