[swift-users] Object size on heap

Joe Groff jgroff at apple.com
Mon Mar 21 14:07:09 CDT 2016


> On Mar 19, 2016, at 1:53 PM, Howard Lovatt via swift-users <swift-users at swift.org> wrote:
> 
> Hi,
> 
> Is there a way to find out how big an object is on the heap?

No public API yet. For entertainment purposes, you could use the runtime's swift_class_getInstanceExtents function, passing in the class object for the instance.

-Joe


More information about the swift-users mailing list