[Vm-dev] Profiling with gprof

David T. Lewis lewis at mail.msen.com
Sat Jul 19 18:08:06 UTC 2008


On Sat, Jul 19, 2008 at 07:00:29PM +0200, Andr?? Wendt wrote:
>  
> Hi,
> 
> has anyone successfully profiled the VM with gprof lately, preferably on
> Linux? If so, how did you do it?
> 
> I've tried the hints at http://wiki.squeak.org/squeak/2041 but I guess
> they're badly out of date: configure and GCC 4.2 will choke on '-g -pg
> -a' but not '-g -pg', and so there's no bb.out.

I just hand-edit ./Makefile and ./vm/Makefile in the build directory, and
add "pg" to the CFLAGS definition of each. The resulting VM produces a
gmon.out file, and running "gprof ./squeak" provides the profiling output.
This is on Linux, and I just went by the information in the gprof(1) man
page.

Dave



More information about the Vm-dev mailing list