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

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

PHPz
PHPzOriginal
2016-05-16 20:19:54966browse

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

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

benchmark- >memory_usage() ; ?>

相关的伪变量是:

{ memory_usage}

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

更多相关教程请访问 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