No time statistics in gprof, although multithtread hook is pre-loaded
Title: No time statistics in gprof, although multithtread hook is pre-loaded Hello friends, I am trying to get profiling data for the CA product. They built for me executables with gprof option. The CA insisted their daemons are not multithreaded, but I saw that they use g++ STL (STL surely is thread-safe and uses pthread lib) . So I implemented the hook for the multythreaded application because I got no time collected message from the gprof. Hook is here: http://sam.zoy.org/writings/programming/gprof.html Althoutg hook is really preloaded, I still do not have time statistics. I am using RH AS 3 update 6 Kernel : 2.4.21-37.ELsmp #1 SMP glibc-2.3.2-95.37 libgcc-3.4.5-2 Help is very welcomed, Lev
Re: No time statistics in gprof, although multithtread hook is pre-loaded
On Tue, 1 Aug 2006, Olshvang Lev wrote: Hello friends, I am trying to get profiling data for the CA product. They built for me executables with gprof option. The CA insisted their daemons are not multithreaded, but I sawthat they useg++ STL (STL surely is thread-safe and uses pthread lib) . ha? STL cannot be thread-safe, before STL is part of ANSI C++, and multi-threading support is NOT part of ANSI C++. in order to use STL in a thread-safe manner, you need to handle the locking and synchronization yourself. -- guy For world domination - press 1, or dial 0, and please hold, for the creator. -- nob o. dy = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]