fixed #3 GProf fails to profile a multi-threaded application