BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-01-2005, 02:54 AM   #1 (permalink)
New Member
 
Join Date: May 2005
Model: 7750
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Finding the total memory being consumed currently by a specific application

Please Login to Remove!

Hi,

I have an application running on the blackberry handheld. Is it possible to find out the total memory being consumed currently by that application (RAM, flash etc.).

I know for sure that it is possible to find out the total memory being consumed currently by the handheld (using the 'Memory Statistics' or using the APIs provided) but am not sure if the same is possible for a specific application.

-Amit
Offline  
Old 07-01-2005, 07:16 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Aug 2004
Location: Metro NYC
Posts: 175
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Memory stats for an application can only be done from within the development environment.
__________________
-- Aric Rosenbaum
BlackBerry consulting, BlackBerry development
www.arconsultinginc.com
BlackBerry consulting and development (RIM SI Partner)
Offline  
Old 07-01-2005, 09:23 AM   #3 (permalink)
New Member
 
Join Date: May 2005
Model: 7750
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Aric,

Can you tell me in brief how Memory stats can be done from within the development environment

-Amit
Offline  
Old 07-01-2005, 08:44 PM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Aug 2004
Location: Metro NYC
Posts: 175
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Pretty simple (and off the top of my head):

1 - Set a breakpoint in your app and run it

2 - When at breakpoint, click "View -> Memory Statistics" to see your memory statistics.

3 - Click Refresh.

The Snapshot button allows to create a snapshot and compare memory used between 2 breakpoints.
__________________
-- Aric Rosenbaum
BlackBerry consulting, BlackBerry development
www.arconsultinginc.com
BlackBerry consulting and development (RIM SI Partner)
Offline  
Old 07-06-2005, 04:37 AM   #5 (permalink)
New Member
 
Join Date: May 2005
Model: 7750
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Aric,

I already knew how to view the memory stats but my question is, if I put a breakpoint in my application and then view memory stats (step 2 of your reply) will I see the memory stats of my application or will I be seeing the combined memory stats of the whole handheld (I mean memory being consumed by all background threads and currently active applications)

-Amit
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LOT of 13 GENUINE OEM IBM EASYSTRIKE LIFT OFF TAPE CASSETTES #1337765
$45.0
LOT of 13 GENUINE OEM IBM EASYSTRIKE LIFT OFF TAPE CASSETTES #1337765  pictureEE8: Genuine OEM IBM 16V 4.5A Laptop AC Power Adapter 02K6749 02K6756
$15.99
EE8: Genuine OEM IBM 16V 4.5A Laptop AC Power Adapter 02K6749 02K6756  pictureOEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 46N1999 46N1998
$32.0
OEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 46N1999 46N1998 pictureLOT OF 10 x OEM IBM ANPOS POS Keyboard PS/2 Y-Cables FRU 42M5596 J89127 E89980
$99.99
LOT OF 10 x OEM IBM ANPOS POS Keyboard PS/2 Y-Cables FRU 42M5596 J89127 E89980 pictureIBM / Infoprint 2000 Toner, Version 2, 69G7382, 2 Bottles, 2.5kg (OEM / NEW)
$149.95
IBM / Infoprint 2000 Toner, Version 2, 69G7382, 2 Bottles, 2.5kg (OEM / NEW) picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.