Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
12-22-2010 02:37 PM - edited 12-22-2010 02:38 PM
I was wondering if there was a way to monitor how much memory my app currently uses. I process a lot of images and I don't want to end up with a heavy load app.
Solved! Go to Solution.
12-22-2010 02:57 PM
you can probably get a good feel for the amount of memory in use by Adobe AIR (all instances i believe) by using the System.totalMemory property of the System class which is in the file.System package. Here's more info about this feature:
hope that helps. good luck!
12-22-2010 03:00 PM
12-22-2010 03:04 PM
hah dont sweat it! if you have anymore questions we'll be more than happy to help you out
12-22-2010 04:35 PM
I know this is marked as solved, but check out http://code.google.com/p/mrdoob/source/browse/trun
I personally use this in all my projects during development.
usually I have a component as the last element in my display list that I attach it to
<mx:UIComponent id="debug" top="0" left="0" />
so if you use the same example, just add the following to your applicationComplete handler:
12-22-2010 04:40 PM
12-22-2010 04:42 PM
I'm sure you'll find this yourself pretty quickly, but I posted a link to the wrong changeset
This is the latest one at the moment: http://code.google.com/p/mrdoob/source/browse/trun
12-22-2010 05:42 PM - edited 12-22-2010 05:43 PM
I'm not sure why you wouldn't just drop the revision as it should then always point to the latest: http://code.google.com/p/mrdoob/source/browse/trun
12-23-2010 01:20 PM
Are you guys sure this information is accurate? When I load several images in my application the memory usage does not increase.
12-23-2010 01:29 PM
Memory usage in modern systems isn't straightforward sometimes. Memory is often allocated from the operating system in large chunks (like megabytes at a time sometimes) which are then managed within an application. Memory that is "released" is not necessarily returned to the overall pool until an application ends, and so forth. Memory allocation for embedded assets may be done as the app launches, rather than during what you think are calls to "add" images.
If you allocated many megabytes and still see no change, I'd be inclined to agree that some of those calls are not being helpful, though you didn't say exactly what you're doing so it's hard to say.