Re: gprof cannot profile multi-threaded programs

From: Dan Kegel (dank@alumni.caltech.edu)
Date: Wed Jan 31 2001 - 12:13:22 EST


Mohit Aron wrote:
>
> > http://opensource.corel.com/cprof.html
> >
> > I haven't used it yet, myself.
> >
>
> I have. cprof is no good - extremely slow and generates a 100MB trace
> even with a simple hello world program.

Oh. Bleh.

http://wordindex.sourceforge.net/testdata/usenet.col-20000817-1548/028-123.col.txt.txt
mentioned a workaround for gprof, I don't know if it's real:

> AFAIK gprof doesn't support multithreaded apps profiling, but you can
> workaround it if you call getitimer() in the main thread for ITIMER_PROF
> then using that value in a call to setitimer() in every thread you
> spawn. Other alternative is using the open source cprof by Corel [I
> never

- Dan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 31 2001 - 21:00:39 EST