When we were having slow memory loss problems with Roadshow (2011) we wrote UIAutomation scripts to drive the problem. I don't think they directly uncovered the sources of the problem, but they did give us a metric for judging whether we were making progress (the script tried to open 100 web pages, and originally we'd run out of memory after 30 or so; eventually we could do the whole list).
What I really wanted was a way to run the UIAutomation script at the same time as the leaks and/or heapshot instruments, so we could see where the memory was going. Every time I tried Instruments crashed. I complained about it at WWDC, and they said it should work now, but I haven't gone back to check.
--
Jim Matthews
Fetch Softworks
http://fetchsoftworks.com