Memory usage: Report from 'Instruments'
Memory usage: Report from 'Instruments'
- Subject: Memory usage: Report from 'Instruments'
- From: Brian Christmas <email@hidden>
- Date: Fri, 16 Sep 2016 16:21:40 +1000
G’day scripters
Further to the topic of memory leaks, it looks like I’m at fault for using a loop of 2 seconds to call a very large and complex subroutine, that monitors conditions of others App such as Mail, and activates them when necessary. When other Apps are running, it shortens what the loop actually does.
Should I replace the looping with an ‘on idle’ command? (that’s what I’m thinking!)
Is it somehow possible to cancel any excess buildup of loop calling?
Any suggestions, please?
Regards
Santa
Bytes Used # Leaks Symbol Name
14.04 MB 99.9% 42822 RunCurrentEventLoopInMode
14.04 MB 99.9% 42822 CFRunLoopRunSpecific
14.04 MB 99.9% 42822 __CFRunLoopRun
14.04 MB 99.9% 42822 __CFRunLoopDoTimers
14.04 MB 99.9% 42821 __CFRunLoopDoTimer
14.04 MB 99.9% 42821 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
14.04 MB 99.9% 42821 __NSFireDelayedPerform
14.04 MB 99.9% 42821 _CF_forwarding_prep_0
14.04 MB 99.9% 42821 ___forwarding___
14.04 MB 99.9% 42820 -[BAObjectProto forwardInvocation:]
14.04 MB 99.9% 42795 -[BAObjectProto invokeScriptHandler:args:error:]
528 Bytes 0.0% 7 +[NSAppleEventDescriptor listDescriptor]
528 Bytes 0.0% 8 AEPutDesc
480 Bytes 0.0% 5 -[NSInvocation(AppleScriptObjC) argumentDescriptorAtIndex:]
384 Bytes 0.0% 4 osaidHasHandler
64 Bytes 0.0% 1 -[NSString stringByReplacingOccurrencesOfString:withString:]
64 Bytes 0.0% 1 +[NSInvocation _invocationWithMethodSignature:frame:]
And what, you ask, was the beginning of it all? And it is this...... Existence that multiplied itself For sheer delight of being And plunged with numberless trillions of forms So that it might find itself innumerably
Sri Aurobindo
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden