This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Profiling


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 ]

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]