[Sablevm-developer] profiling SableVM?
Brought to you by:
egagnon
From: Chris P. <chr...@ma...> - 2004-02-08 06:04:09
|
Hi, Has anybody had any luck with profiling SableVM? I need to do this to cut down on the overhead of my speculative multithreading work, because currently benchmarks take too long to execute for an efficient write-compile-test-debug cycle. I tried gprof 2.12.90.0.1, but it doesn't work for multithreaded C applications like SableVM (this is apparently a well-known problem with gprof). I tried the pthread_create() wrapper for use with gprof found here: http://sam.zoy.org/writings/programming/gprof.html but have had no luck with it (same gprof output as before setting LD_PRELOAD=~/gprof-helper.so -- I found the single call to pthread_create in SableVM and looked at the gprof-helper.c code but could not see any obvious problem ...) I looked at Prospect: http://prospect.sourceforge.net/ and OProfile: http://oprofile.sourceforge.net/news/ but Prospect depends on OProfile and OProfile requires kernel sources (which I cannot find on the Sable lab machines -- I tried simply downloading the sources but OProfile's configure requires the specific sources used to build the kernel). Finally, I tried installing FunctionCheck 3.0.11 and FunctionDump 3.0.5, but was having errors getting FunctionDump to compile because of a missing bfd library (again something I couldn't find, although I did manage to tell autoconf to look in ~/include for bfd.h, put there by gcc-3.3.2). This tool has been abandoned, with only the SF pages left. http://sourceforge.net/projects/fnccheck/ So ... any comments would be greatly appreciated. I'll email the gprof-helper.c maintainer, but I wanted to see if someone has already got a solution for this. Cheers, Chris |