Peter Butler wrote:

Excellent idea.  I've profiled the JNI and Java versions separately
using java -Xhprof, and the results are here:

The JNI profiles are useless. It seems, most of the time is spent within JNI calls, where no valuable information is provided. Bottom of jni.cpu.txt:


    CPU TIME (ms) BEGIN (total = 19)
    rank   self   accum  count  trace  method
    1      100%   100%   100    3      pricom.jni.test.JNITest.execute

The Java profiles show nothin, IMO. In particular no signs for excessive garbage collection. (Compare the counters of "live" and "alloc'ed" on the bottom of the file.

I suggest you try other tools, which are more helping. For example, I have had good experiences with the EclipseColorer (see http://eclipsecolorer.sourceforge.net) As the name suggests, it's a plugin for Eclipse and relatively self explaining.


Sorry,

Jochen

Reply via email to