Returns the specified resource's memory usage in megabytes.