Improved memory usage reporting mechanisms

This commit is contained in:
Richard Frith-Macdonald 2019-08-08 17:20:25 +01:00
parent 2ca4f74af5
commit dd36855923
21 changed files with 404 additions and 230 deletions

View file

@ -410,9 +410,9 @@ static inline BOOL timerInvalidated(NSTimer *t)
}
- (void) receivedEvent: (void*)data
type: (RunLoopEventType)type
extra: (void*)extra
forMode: (NSString*)mode
type: (RunLoopEventType)type
extra: (void*)extra
forMode: (NSString*)mode
{
#if HAVE_DISPATCH_MAIN_QUEUE_DRAIN_NP
dispatch_main_queue_drain_np();
@ -527,7 +527,7 @@ static inline BOOL timerInvalidated(NSTimer *t)
}
NSEndMapTableEnumeration(&enumerator);
/* Finally, fire the requests ands release them.
/* Finally, fire the requests and release them.
*/
for (i = 0; i < count; i++)
{
@ -955,7 +955,7 @@ updateTimer(NSTimer *t, NSDate *d, NSTimeInterval now)
{
NSTimeInterval add;
/* Just incrementing the date was insufficieint to bring it to
/* Just incrementing the date was insufficient to bring it to
* the current time, so we must have missed one or more fire
* opportunities, or the fire date has been set on the timer.
* If a fire date long ago has been set and the increment value