Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Nov 2006

    How to check Memory Occupied by My Application?

    I have used the method (Runtime.getRuntime().freeMemory();) in Nokia 6600 to check total RAM space, it shows 703KB.

    Then when my Mobile Game is running on, i have used the same method to print continuously whatz the free memory space available, at that time it shows 211 KB and then starts decreasing on up to 0KB, Then again it starts from 211 KB and decreases 1 by 1 to 0KB.

    I have checked with some other application also, for any type of application, its showing the same value (Total RAM - 703KB, At runtime - 211 KB to 0KB)

    1. I want to know how much is the memory need for my game, how can i check it?

    2. And why the method (Runtime.getRuntime().freeMemory();) shows the decrementing up to 0, and starts form 211 and to 0 again.

    Anyone kindly help please...
    Last edited by pmramprasath; 2006-11-20 at 06:20.

  2. #2
    Super Contributor
    Join Date
    Dec 2005

    Re: How to check Memory Occupied by My Application?


    on S60 devices exact value of available memory is not possible:
    because thats dynamically allocated memory, not a static,
    I'd use Sun WTK memory profiler (profiling option) to check exact ammount of memory used by your application (or use some other tools for the same purpose, e.g. S60 SDK utilities),

  3. #3
    Regular Contributor
    Join Date
    Mar 2003

    Re: How to check Memory Occupied by My Application?


    Where doI find S60 SDK utilies to do profiling? The S60 3rd Edition SDK EMU diagnostics doesn't have anything about profiling although it does display memory usage I don't think that it is accurate.

    Erica A Ramsey / Mobile Apps Developer /
    Resume ~ http://home.comcast.net/~erica.ramsey/CV
    Some Project Screenshots ~ http://home.comcast.net/~erica.ramsey/CV/screens.html

Similar Threads

  1. CAknForm/CAknDialog and memory management
    By ValentinK in forum Symbian
    Replies: 0
    Last Post: 2006-07-10, 20:16
  2. Replies: 8
    Last Post: 2006-02-21, 07:43
  3. Some memory related and other issues
    By sanjg2k1 in forum General Development Questions
    Replies: 0
    Last Post: 2003-07-07, 17:38
  4. how to check if there's a memory leak?
    By lingtze1 in forum Mobile Java General
    Replies: 0
    Last Post: 2003-06-12, 10:23
  5. Check for memory leaks..
    By pvermeulen in forum Mobile Java General
    Replies: 1
    Last Post: 2003-04-14, 09:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts