I've been working on profiling some multi-threaded application
code written in C++. I'm running into several problems and would be
interested to know whether anyone has any workarounds:
1. Despite what the manual page claims, /usr/ccs/bin/prof
does *not* seem to demangle C++ identifiers. Moreover,
it does not seem to accurately count function usage.
2. /opt/SUNWspro/bin/gprof *does* correctly demangle names
and seems to do a better job of counting function calls.
However, then compiled with the -pg compiler switch,
and run with all threads *bound*, the executable program
keeps blocking indefinitely in a call to moncontrol()
(i.e., moncontrol seems to get "stuck" somehow).
Has anyone else experienced these problems, and if so, are there any
workarounds and will SunOS 5.3 fix these problems?
His life was gentle, and the elements so | Douglas C. Schmidt
And say to all the world: "This was a man." | ucivax!schmidt
-- In loving memory of Terry Williams (1971-1991)| (714) 856-4101