(PECL imagick 2.0.0)
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。