All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Kegel <dank@alumni.caltech.edu>
To: Mohit Aron <aron@cs.rice.edu>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: gprof cannot profile multi-threaded programs
Date: Wed, 31 Jan 2001 09:13:22 -0800	[thread overview]
Message-ID: <3A7847B2.E33E8A87@alumni.caltech.edu> (raw)
In-Reply-To: <200101310727.BAA14161@cs.rice.edu>

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/

  parent reply	other threads:[~2001-01-31 17:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-31  5:38 gprof cannot profile multi-threaded programs Dan Kegel
2001-01-31  7:27 ` Mohit Aron
2001-01-31 16:52   ` John Levon
2001-01-31 17:13   ` Dan Kegel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-01-31  5:31 Mohit Aron
2001-01-31 14:17 ` Kurt Roeckx

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3A7847B2.E33E8A87@alumni.caltech.edu \
    --to=dank@alumni.caltech.edu \
    --cc=aron@cs.rice.edu \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.