簡介

The purpose of this extension is to detect the most memory hungry scripts and functions.

memtrack tracks memory consumption in PHP scripts and produces reports (warnings) when the consumption reaches certain levels set by the user. This is achieved by replacing default executor function by a special function which compares memory usage before and after running the original executor - this way we can tell how much the memory usage has changed during the execution of the current part of the code.

Zend Engine runs its executor for each opcode array (op_array), which usually means function, plain script and such, so memtrack doesn't have any noticeable effect on performance.

memtrack doesn't provide any functions, there are only INI directives which allow you to configure the way it should work.

Warning

本擴充功能是實驗性的。這個擴充功能的行為、名稱、和關於此功能的任何其他文件在未來PHP的發行中可能會在不通知的情況下改變。使用本擴充功能需自行承擔風險。

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top