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
Post a Comment