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

How to measure Midlet performance?

 
Horaci Macias
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to make some performance tests in Midlets, but all profilers I have need a class with a main() to mesure. Does anyone know how to make performance tests with Midlets?
Thank you,
Horaci Macias
 
Mark Herschberg
Sheriff
Posts: 6037
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm.... good question. Off the top of my head, I'm wondering if you can wrap your MIDlet in a regular program. The trick is getting the MIDP classes to be recognized by the profiler.
--Mark
 
Ercan Erciyes
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What kind of tests you would like to execute?CPU,VM,CPU/VM overheads,Memory,RMS,..etc??
But by using system array copies, you can have a indication of CPU performance i guess. I read it somewhere but not quite sure. just try System.arraycopy :roll: and iterate the operation and calculate the time by using System.currentTimeMillis() method..
And may be empty loops might help you to estimate the non-CPU/VM overheads
What do you think about it?
Cheers,
 
Horaci Macias
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've seen that System.arraycopy makes a native call, so it seems that you can make some CPU comparations using System.arraycopy in various environments. This is not what I was asking for, I would like to know how to use a profiler with midlets, count how much times a method is called, what methods are called if I press a button, etc.
Cheers,
Horaci Macias
 
Mark Herschberg
Sheriff
Posts: 6037
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ercan",
PROPER NAMES ARE NOW REQUIRED
Please look carefully at official naming policy at javaranch & reregister yourself with proper first & last name, with a space between them. Please adhere to official naming policy & help maintain the decorum of the forum. The naming policy can be found at http://www.javaranch.com/name.jsp
Topics posted by people with invalid names will be closed. Please register with a new name and this topic will be reopened.

--Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic