discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of NSZoneStat()


From: Gregory Casamento
Subject: Re: Use of NSZoneStat()
Date: Thu, 08 Mar 2018 16:19:15 +0000

Did you test this on Mac OS X?  What results are returned there?

On Thu, Mar 8, 2018 at 11:14 amon <amon@vnl.com> wrote:
I am trying to get a handle on storage leaks and NSZoneStat()
would be ideal... except it doesn't work.

   NSZone *dftzone = NSDefaultMallocZone();
   NSZone *curzone = NSZoneFromPointer ( (void *) arglist);
   printf ("dft = %lx cur  = %lx\n",
          (long unsigned int) dftzone,
          (long unsigned int) curzone);

   struct NSZoneStats zs0 = NSZoneStats (dftzone);
   printf ("Bytes Used %d Free %d\n",
          (int) zs0.bytes_used,
          (int) zs0.bytes_free);

dft = 7ffcfdf26200 cur  = 7ffcfdf26200
bin/gpstest: Uncaught exception NSGenericException, reason: No
statistics for default zone

--
+---------------------------------------------------------------+
|   Dale Amon                  Immortal Data                    |
|   CEO             Midland International Air and Space Port    |
| amon@vnl.com       "Data Systems for Deep Space and Time"     |
+---------------------------------------------------------------+

_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnustep
--
Gregory Casamento
GNUstep Lead Developer / OLC, Principal Consultant
http://www.gnustep.org - http://heronsperch.blogspot.com
http://ind.ie/phoenix/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]