Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I get the maximum memory my App uses?

 
HaoZhe Xu
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does ktoolbar has this functionality? If not, how to achieve that?
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • 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...
 
Sang-Wook Kim
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • 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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic