libc/1427: gprof does not profile threads
Quoted 13 lines · Ulrich Drepper
Quoted 5 lines · Dan Kegel
Quoted 2 lines
Ulrich, do you at least agree that it would be desirable for gprof to work properly on multithreaded programs?
No. gprof is uselss in today world.
Then why not change
sysdeps/generic/initfini.cwith something like:(quoted diff) +1
-1- if (gmon_start) + if (gmon_start && __pthread_initialize_minimal) gmon_start ();
Quoted 1 line
So it doesn't even try when threading?
I believe Ulrich's proposed fix would be
Review
Quoted 3 lines
(quoted diff) +1
-1- if (gmon_start) + if (gmon_start && 0) gmon_start ();
as he did not distinguish between threaded and nonthreaded programs when he said gprof was useless.
- Dan