Profiling tools?

Tom Tromey tromey@cygnus.com
Fri Sep 10 10:36:00 GMT 1999


>>>>> "Matt" == Matt Welsh <mdw@cs.berkeley.edu> writes:

Matt> Does anyone have any experience with using profiling tools
Matt> (e.g., gprof) with gcj-compiled Java programs?

I know somebody on this list has done it, but I don't remember who.
It wasn't me.

Matt> How hard would it be to build libgcj using -pg, so I can get a
Matt> profiling trace of the runtime itself? What is the simplest way
Matt> to pass that option along to the Makefiles?

I usually do this by building everything and then:

1. cd <target-dir>/libjava
2. make mostlyclean
  (and in your case...)
3. make CXXFLAGS='-g -pg' JC1FLAGS='-g -pg'

Tom


More information about the Java mailing list