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

PHPz
Release: 2018-10-10 14:59:13
Original
1025 people have browsed it

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

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

benchmark- >memory_usage() ; ?>
Copy after login

相关的伪变量是:

{ memory_usage}
Copy after login

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

更多相关教程请访问 php编程从入门到精通全套视频教程

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template