Profiling

Bryce McKinlay bryce@albatross.co.nz
Thu Nov 25 17:18:00 GMT 1999


Manosiz Bhattacharyya wrote:

>         After building an executable, what is the easiest way of profiling
> methods called at runtime. I would appreciate if any of you could help me
> with this.

Compile a libgcj without thread support (--enable-threads=none) You should then
be able to build your executable with the -pg option, and use gprof to read the
gmon.out file which will be generated by your executable at runtime.

As far as I know, profiling currently does not work correctly with threads.

regards

  [ bryce ]


More information about the Java mailing list