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

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

WBOY
WBOYOriginal
2016-06-13 12:44:08799browse

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