(PECL imagick 2, PECL imagick 3)
Imagick::getResource — Returns the specified resource's memory usage
$type
Returns the specified resource's memory usage in megabytes.
type
Refer to the list of resourcetype constants.
错误时抛出 ImagickException。