[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Use of NSZoneStat()
From: |
amon |
Subject: |
Use of NSZoneStat() |
Date: |
Thu, 08 Mar 2018 10:15:58 -0600 |
User-agent: |
Roundcube Webmail/1.3.4 |
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" |
+---------------------------------------------------------------+
- Use of NSZoneStat(),
amon <=