[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems when linking against the profiled libc
- To: "Nadav Har'El" <nyh(at-nospam)math.technion.ac.il>
- Subject: Re: Problems when linking against the profiled libc
- From: Oleg Goldshmidt <ogoldshmidt(at-nospam)computer.org>
- Date: 02 Dec 2001 15:58:14 +0200
- Cc: Shlomi Fish <shlomif(at-nospam)techst02.technion.ac.il>, linux-il(at-nospam)linux.org.il
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: "Nadav Har'El"'s message of "Sun, 02 Dec 2001 12:45:07 +0200"
- Organization: Speaking for myself only.
- Original-Sender: ogoldshmidt@computer.org
- References: <Pine.GSO.4.33.0112021224390.9690-100000@techst02.technion.ac.il><20011202124507.A10150@leeor.math.technion.ac.il>
- Reply-To: linux-il(at-nospam)linux.org.il
- Sender: oleg(at-nospam)data-zoo.com
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley)
"Nadav Har'El" <nyh@math.technion.ac.il> writes:
> By the way, when profiling, you should also use "-g".
Not true. You should use your normal compilation options. In
particular, you might be interested in profiling optimized code
without extra debugging information.
You need -g if you want to do line-by-line profiling (rather than
function-by-function), because -g is what is tracking source code
lines. Check gprof's info pages.
--
Oleg Goldshmidt | ogoldshmidt@NOSPAM.computer.org
"If it ain't broken, it has not got enough features yet."
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il