Re: Xcode 4.3.1 memory usage
Re: Xcode 4.3.1 memory usage
- Subject: Re: Xcode 4.3.1 memory usage
- From: Alex Zavatone <email@hidden>
- Date: Thu, 15 Mar 2012 10:58:36 -0400
I just put together a short AppleScript that uses GUI Scripting to issue a build on the first open project, waits 10 seconds, then grabs the value of the RAM next to the "Free:" text from the System Memory Tab of the Activity Monitor.
It then dumps the iteration # and the value received from that text block and repeats forever.
Since we were trying to see what Xcode is doing or how Xcode ends up eating memory in this thread, I thought I'd put this together as a start, to see if it can get us any usable information.
If the value of the text next to the "Free:" RAM is not what I should be getting, would any of the other memory indicators (Wired, Active, VM size, Swap used) be more useful?
To run this script, enable GUI scripting, open the Activity Monitor to the System Memory tab and make sure you have all other windows closed.
Open your xCode project in Xcode and make sure the "Run" button is visible.
The delay right now is 10 seconds since I am testing against the UICatalog iOS project. Please modify it to allow your app to build and launch.
Currently, I am seeing all memory get eaten up after many subsequent builds, but it always gets reclaimed.
I'll let this run for the rest of the day to see if anything of note happens.
Here's the script if anyone wants to run it on their config. It's quick and dirty but does the task.
on run
Main()
end run
on Main()
set myIteration to 0
repeat while true
set myIteration to myIteration + 1
tell application "Xcode"
tell application "System Events"
tell process "Xcode"
click button "Run" of tool bar 1 of window 1
end tell
end tell
end tell
delay 10
tell application "Activity Monitor"
tell application "System Events"
tell process "Activity Monitor"
set freeRAM to value of item 1 of static text 2 ¬
of tab group 1 of window "Activity Monitor" as string
end tell
log (myIteration & " Free RAM: " & freeRAM)
end tell
end tell
end repeat
end Main
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden