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

IBM 1337765 Lift-Off CorrectionTape - Genuine OEM for IBM Wheelwriter
$9.99
IBM 1337765 Lift-Off CorrectionTape - Genuine OEM for IBM Wheelwriter  pictureOEM IBM TP 8X/20X EXTERNAL PCMCIA CD-ROM DRIVE - 03L3080 / 03L3051 /1969-010
$39.99
OEM IBM TP 8X/20X EXTERNAL PCMCIA CD-ROM DRIVE - 03L3080 / 03L3051 /1969-010 pictureOEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 46N1999 46N1998
$30.0
OEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 46N1999 46N1998 pictureIBM Lenovo THINKPAD LAPTOP AC POWER ADAPTER 20V 3.2.5A OEM 92P1156 42T5282
$11.0
IBM Lenovo THINKPAD LAPTOP AC POWER ADAPTER 20V 3.2.5A OEM 92P1156 42T5282 picture13 IBM 1299095 Typewriter High Yield Correctable Film Ribbon OEM New Old Stock
$28.5
13 IBM 1299095 Typewriter High Yield Correctable Film Ribbon OEM New Old Stock picture






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