Home >Backend Development >PHP Tutorial >检测codeigniter脚本消耗内存情况的方法_PHP

检测codeigniter脚本消耗内存情况的方法_PHP

WBOY
WBOYOriginal
2016-05-31 11:45:18890browse

本文实例讲述了检测codeigniter脚本消耗内存情况的方法。分享给大家供大家参考。具体如下:

如果你想显示脚本消耗内存情况,请将下面的代码加入到view里面

<&#63;php echo $this->benchmark- >memory_usage() ; &#63;>

相关的伪变量是:

{ memory_usage}

希望本文所述对大家基于codeigniter的php程序设计有所帮助。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn