Posted By

electblake on 05/14/10


Tagged

php XDebug


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

zack


XDEBUG Memory Usage


 / Published in: PHP
 

cleanly display the memory used so you know when your going over, especially useful for memory hog drupal sites.

  1. <?php echo (ceil(xdebug_memory_usage()/1024/1024)).' MB'; ?>

Report this snippet  

You need to login to post a comment.