Profiling tools?

Anthony Green green@cygnus.com
Fri Sep 10 06:13:00 GMT 1999


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

Jeff Sturm does <jsturm@sigma6.com>.

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

A couple of points...

	- Unless you changed something, you should be noticing that
	  the Java code in libgcj is being built _without_
	  optimization.  This could be having a big impact on your
	  application.

	- There's no clean way to pass flags to the java compiler from
	  outside the make system right now.  There's a PR in the bug
	  database for this (#41).

Unless you are inspired to address pr41, all I can suggest is to edit
the Makefiles.

AG

-- 
Anthony Green                                               Cygnus Solutions
                                                       Sunnyvale, California


More information about the Java mailing list