How to get the memory used by a specific object

what do i do to get the memory taken by a specific object like a part or a script