Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory management



You could also build the logging into your app:

just set your appname and you can get the memory. If you read the man pages for top you basically do the top command 1 time and then grep your application out of the results.

set applicationName to "Mail"
set topOutput to do shell script "top -l1 | grep " & applicationName & " | awk '{print $8}'"
log topOutput

--This will return something like
(*
11.2M*)

On Oct 15, 2004, at 1:17 AM, John Mistler wrote:

Does anyone know if there is a way to monitor the amount of RAM and/or
processing power your app is eating up? Mine seems to make the fan on my
powerbook Titanium G4 come on quite often, whereas other programs do not.

Thanks,

John

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden

_______________________________________________________


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden

References: 
 >Memory management (From: John Mistler <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.