XDEBUG Memory Usage


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. <?php echo (ceil(xdebug_memory_usage()/1024/1024)).' MB'; ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.