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

HSS 10PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP
$153.0
HSS 10PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP pictureHSS 12PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP
$165.0
HSS 12PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP pictureHSS 15PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP
$197.0
HSS 15PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP pictureHSS 21PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR,BIKES, JEEP
$229.0
HSS 21PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR,BIKES, JEEP pictureVintage SIGNODE Crimping W14 Tool 17.5" long pat#1784123 dec9 1930 /N12167
$23.86
Vintage SIGNODE Crimping W14 Tool  17.5






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