[Top][All Lists]

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

Re: gprof --line taking _forever_

From: Ian Lance Taylor
Subject: Re: gprof --line taking _forever_
Date: 14 Apr 2004 12:18:01 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

"David Mathog" <address@hidden> writes:

> I'm trying to profile the "blastall" program from the NCBI toolbox.
> (ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/CURRENT/ncbi.tar.gz).  The
> programs were all compiled with "gcc -g -pg -O3" on a RH 7.3 system
> with gcc 3.3.3. One of the programs was run:
> time /usr/common/ncbi_new/ncbi/build/blastall -p blastp -d nr_lcl -i
> a1hu.pfa  -b 10 -v 10 >testout.txt
> to produce a gmon.out file. The default gprof command works:
>  gprof  /usr/common/ncbi_new/ncbi/build/blastall 
> 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.

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.


reply via email to

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