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

Bourns 96A1DC28H10 *5pcs* SEALED Cemet Precision 1K Linear Potentiometers wo
$6.99
Bourns 96A1DC28H10 *5pcs* SEALED Cemet Precision 1K Linear Potentiometers     wo pictureNew 10 pcs 3-Pin 10K ohm Linear Taper Rotary Potentiometer Panel pot B10K 15mm
$2.18
New 10 pcs 3-Pin 10K ohm Linear Taper Rotary Potentiometer Panel pot B10K 15mm pictureBourns 3540S-1-103 10k OHM Wirewound Linear Potentiometer *FREE SHIPPING*
$8.95
Bourns 3540S-1-103 10k OHM Wirewound Linear Potentiometer *FREE SHIPPING* picturePotentiometers 16mm Rotary Panel Potentiometer (50 pieces)
$52.43
Potentiometers 16mm Rotary Panel Potentiometer (50 pieces) picture(11) Honeywell 53C35K Potentiometer RV4NAYSD502A NEW
$148.5
(11) Honeywell 53C35K Potentiometer RV4NAYSD502A NEW picture






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