LoginSignup
1
2

More than 5 years have passed since last update.

コピペで使えるメモリ使用量計測用スニペット

Last updated at Posted at 2015-06-22
printf("[Before] MEMORY USAGE: %0.2fMB\n", round(memory_get_usage() / 1024 / 1024), 2);

/* ここにコードを記載 */

printf("[After] MEMORY USAGE: %0.2fMB\n", round(memory_get_usage() / 1024 / 1024), 2);
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2