bobbingwide / oik-bwtrace

debug trace for WordPress
https://www.oik-plugins.com/oik-plugins/oik-bwtrace-debug-trace-for-wordpress/
GNU General Public License v2.0
6 stars 1 forks source link

Trace real memory usage #40

Closed bobbingwide closed 8 years ago

bobbingwide commented 8 years ago

When selected the trace records show the current memory usage and peack memory usage in bytes using memory_get_usage() and memory_get_peak_usage(). While debugging a problem with images I noticed that the results appear more correct if these functions are called to return the real usage, setting the $real_usage parameter to true. PHP docs say "Set this to TRUE to get total memory allocated from system, including unused pages. If not set or FALSE only the used memory is reported."

Additionally, the admin page could be enhanced to show the currently set 'memory_limit'.