Skip to content

Instantly share code, notes, and snippets.

@IchHabRecht
Created August 21, 2013 21:06
Show Gist options
  • Save IchHabRecht/6300309 to your computer and use it in GitHub Desktop.
Save IchHabRecht/6300309 to your computer and use it in GitHub Desktop.
[PHP] Add memory usage to output
$content = '<!-- BEFORE: ' . (memory_get_peak_usage() / 1048576) . ' -->';
$content .= '<!-- AFTER: ' . (memory_get_peak_usage() / 1048576) . ' -->';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment