Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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)
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic