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.
What's worse is that gprof doesn't produce any statistics apart from vm/sqUnixMain.c -- here's its summary:
Top 10 Lines:
Line Count
239 1 934 1 977 1 1134 1 1159 1 1166 1 1279 1
What the... ? Hello, I was hoping for some details on the interpret() function!? -- Well, what more can possibly be in 430 KB of gmon.out? ;-)
So how do I get gprof to take note of interp.c or gnu-interp.c?
Thanks, André
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
vm-dev@lists.squeakfoundation.org