[swift-users] Object size on heap

Howard Lovatt howard.lovatt at gmail.com
Mon Mar 21 23:31:35 CDT 2016


How do you call swift_class_getInstanceExtents, it doesn't show in Xcode?

  -- Howard.

On 22 March 2016 at 06:07, Joe Groff <jgroff at apple.com> wrote:

>
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160322/d79d1572/attachment.html>


More information about the swift-users mailing list