[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gprof --line taking _forever_

From: David Mathog
Subject: Re: gprof --line taking _forever_
Date: Wed, 14 Apr 2004 12:51:43 -0700

> > However, when I try this:
> > 
> >  grpof --line /usr/common/ncbi_new/ncbi/build/blastall
> > 
> > the CPU pegs at 99% and stays there for at least 45 minutes
> > (it's still running as I write this.)
> You didn't mention which version of the binutils you are using.  Also
> relevant is type of debugging information--stabs or DWARF.

Beats me, whatever version 3.3.3 of gcc emits by default with
the command line options -g -pg on a RedHat 7.3 system.

> gprof --line is known to be slow.  There have been various recent
> efforts to speed it up by caching more information.  The speedups have
> been fairly dramatic in some cases.  You may want to try a newer
> version of the binutils to see if it helps.

The old version was and it ran somewhere between
70 and 80 minutes (I didn't time it exactly.)  Following your
advice I tried gprof 2.14 and used "time" on that one - it ran in
74m59s. So the newer version doesn't seem to be much (if any) better
than the old one in terms of speed with --line.  I also attempted
to restrict gprof to the function where the most time was spent

 gprof --line --time=BlastWordFinder_mh_contig

but that still ran in 74m19s.


David Mathog
Manager, Sequence Analysis Facility, Biology Division, Caltech

reply via email to

[Prev in Thread] Current Thread [Next in Thread]