Closed GoogleCodeExporter closed 9 years ago
It is not possible right now, to my knowledge. It would require pretty
invasive modifications to the profiling libraries, to keep track of a thread-id
along with each allocation. I'm not convinced this would be generally useful,
and my first thought is I'd rather not complexify gperftools with this
functionality.
If there's a single function you're worried about, perhaps you could modify the
code so each thread calls the function under a different name? This adds some
complexity to your code, but may be worth it for you.
Original comment by csilv...@gmail.com
on 2 Feb 2012 at 6:47
this feature is more useful for cpu profiler than for heap checker / profiler.
for example, if we can divide cpu profiler's call graphs into different parts
for different threads, it's more convenient to find out cpu bottleneck for
individual thread.
Original comment by huas...@gmail.com
on 2 Feb 2012 at 7:34
Hmm, this isn't a need I've seen. Do you really have a situation where a
function is really cheap for one thread but expensive for others? Anyway,
you're welcome to try to code up a patch for it, but it's not something that is
likely to happen unless you do it. :-)
Original comment by csilv...@gmail.com
on 2 Feb 2012 at 9:53
I am going to close this one off since there has been no interest now for a
long time. If interest peaks we can always resurrect it.
Original comment by chapp...@gmail.com
on 11 Mar 2013 at 2:10
Original issue reported on code.google.com by
huas...@gmail.com
on 2 Feb 2012 at 1:58