I have developed a phonegap application. Now I need to find memory leak in javascript code. I tried using instrument (supplied with xcode), but that doesn’t help much in javascript. Could anyone please help on this.
Any help is highly appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I guess you won’t be able to track the leaks which happens in javascript inside UIWebView, But you could avoid them by following some best practices in javascript programming.
These may help to avoid leaks in javascript,
http://msdn.microsoft.com/en-us/library/bb250448%28VS.85%29.aspx
http://www.ibm.com/developerworks/web/library/wa-memleak/