If you have not done already move all your trace files and hprof dump file programming commands to your testcases class. why?
1. Because its called in your Testcase you no longer have to comment it out to publish your application.
2. You can implement a special ant task that triggers or runs that TestCase and dumps the trace and hprof files in your coverage or performance folder for viewing and analysis.
3. If you cannot find the memory miss-use you would be attempting some heavy Monkey UI test runs with -hprof enabled anyway thus there really i snot another case where you would actually need full hprof on the entire application and all its functions.