Package: glibc Version: unavailable; reported 2003-08-25 Severity: normal When profiling threads, gprof actually only profiles the main thread, which is quite useless. The reason is that there is only one timer for the profiling, and that belongs to the main thread. In the profiling case, each thread needs its own timer.
There are several solutions for this, such as a wrapper as on http://sam.zoy.org/writings/programming/gprof.html This, however, is unsatisfactory. Compiling with "-p" should automatically generate code like that or link code like that; for instance with a weak pthread_create symbol. Of course that requires interaction with GCC, but the important change is in the C library. -- System Information: Debian Release: testing/unstable Architecture: i386 Kernel: Linux kosh 2.4.21-2-k7 #1 Sat Jul 5 03:47:02 EST 2003 i686 Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 -- |=| Michael Piefel |=| Humboldt-Universit�t zu Berlin |=| Tel. (+49 30) 2093 3831 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

