[Vm-dev] Profiling with gprof

André Wendt andre.wendt at hpi.uni-potsdam.de
Sat Jul 19 17:00:29 UTC 2008


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?


More information about the Vm-dev mailing list