Home > Backend Development > PHP Tutorial > 大家伙儿平常有有memory_get_usage()这个函数么

大家伙儿平常有有memory_get_usage()这个函数么

WBOY
Release: 2016-06-13 12:44:08
Original
841 people have browsed it

大家平常有有memory_get_usage()这个函数么?
今天看别人的代码用这个在调错的时候用在错误开始获取一个分配给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