On Tue, 23 Dec 1997, Dean Gaudet wrote:
> What I don't get is why this isn't showing up on profiles when I profile
> the code. Grr.
If you ever try to use gprof on linux (or any other system that uses weak
symbols in libc) you'll probably find this patch to be useful. Now I'm
finally getting correct gprof results. Damn I should have suspected our
profile wasn't so flat.
Dean
--- binutils-2.8.1/gprof/core.c.dist Mon May 26 10:35:33 1997
+++ binutils-2.8.1/gprof/core.c Tue Dec 23 02:28:37 1997
@@ -231,6 +231,11 @@
return i; /* it's a global symbol */
}
+ if (i == 'W')
+ {
+ return 'T';
+ }
+
if (i != 't')
{
/* not a static text symbol */
|