php - How to get the real-time memory usage of system when a function is now executing? -


i have image reader below:

    $file = "xxx.jpg";     $image = new imagick();     $image->readimage($file);     $type = $image->getimageformat();     $image->setformat($type);      ...      echo $image->getimagesblob(); 

if want real-time memory usage of system @ moment echo $image->getimagesblob(); executing, how should do? possible run php code asynchronously?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -