• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can I get the maximum memory my App uses?

 
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does ktoolbar has this functionality? If not, how to achieve that?
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by HaoZhe XU:
Does ktoolbar has this functionality? If not, how to achieve that?



I don't think KToolBar has such capability... But you might want to check the memory availability-related methods in Runtime class. I am not so sure what you mean by the maximum memory your App uses?

Do you mean the maximum allocated memory for your application by the device? Or the memory currently taken by your application?

Anyway, if you check the Runtime class out from CLDC 1.1 API specification, you might get an idea... Hope it helps...
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

WTK2.1 provides tools for monitoring applications including memory

usage. See chapter 4 - Performance Tuning and Monitoring Applications

of the WTK2.1 User's Guide. Memory Monitor graph shows the maximum

amount of memory used since program execuyion began. So you would

probably have to use all the functions of your application to see

the maximum amount of memory used. Please note that memory monitor

simply provides you with possible indicators of excessive momey use for

the emulation.

Hope this helped.

Hyung Kim
(SCJD 1.4)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic