IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New google gprof replacement got
[link|http://www.netsys.com/cgi-bin/display_article.cgi?1197|link]
a page of debuggers mentions mprof to be used like gprof
thanx,
bill
."Once, in the wilds of Afghanistan, I had to subsist on food and water for several weeks." W.C. Fields
New From readme, looks like it's memory only
But there are a number of other tools on that page that look interesting.
The lawyers would mostly rather be what they are than get out of the way even if the cost was Hammerfall. - Jerry Pournelle
New Re: google gprof replacement got
From what I can see, all those are memory debugging tools, not really profiling tools - which is what I really need. For some reason, gprof (despite built-in compiler support) is just reporting the call stack of various functions dead wrong - and it's not a complicated case such as some function calling a system function that hasn't been compiled for profiling, it's mis-reporting one function as calling another directly when it quite clearly is doing no such thing.

I'll have to try a couple other systems (we've got an HPUX and an AIX system and can get access to a Linux system), but it's annoying when a (supposedly) "standard" Unix tool, supposedly supported by the vendor, doesn't work.

And, Ben, I can do things with macros if I must, but it's also annoying to have to hand-instrument code with printf's (or however I go about it) when I shouldn't have to.
The lawyers would mostly rather be what they are than get out of the way even if the cost was Hammerfall. - Jerry Pournelle
New You might have missed why I asked that...
It wasn't a recommendation of what to do, it was a question about how an unknown function call could slip into 11 lines without obvious function calls.

Cheers,
Ben
Computer Science is no more about computers than astronomy is about telescopes.
-- Edsger Wybe Dijkstra (1930-2002)
New Ah, no I don't think that's it
The function call HPUX 11.x claims is being called *is* actually in the program, but I can set a breakpoint in the program compiled for debugging and very clearly see it's being called from a completely different "known" function. The only thing I can think is that HP's implementation is totally mis-reading the call stack, or the compiler is (for some reason) inserting the wrong profiling instrumentation, or something like that.

It does seem to work much better under AIX 4.3, but still not perfectly - but in this case the weird function call is truly an unknown call, and in *this* case I can believe it may well be a system call inserted by the compiler implementing some sort of profiling statistical monitoring function. It otherwise does seem to give a more accurate call stack, although working under AIX is (usually) more painful than working under HPUX. Fer crying out loud, AIX still comes with dbx. Even HP eventually adopted gdb, contributing a terminal interface, rather than trying to maintain xdb or dde.
The lawyers would mostly rather be what they are than get out of the way even if the cost was Hammerfall. - Jerry Pournelle
     Profilers? - (wharris2) - (8)
         google gprof replacement got - (boxley) - (4)
             From readme, looks like it's memory only - (wharris2)
             Re: google gprof replacement got - (wharris2) - (2)
                 You might have missed why I asked that... - (ben_tilly) - (1)
                     Ah, no I don't think that's it - (wharris2)
         Could the call be hidden within a macro? -NT - (ben_tilly)
         On the outside chance your system is RH 7.3... - (a6l6e6x) - (1)
             Nah - (wharris2)

Perhaps if we built this large wooden badger...
111 ms