🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51349

GNU gprof question: -a by default?

#51349
From: Arun Katkere
Date: Mon, 24 May 1993 14:29
28 lines
2270 bytes
I couldn't find a newsgroup for this. I guess someone in this newsgroup might
be able to help me.

I am profiling a -pg compiled program using GNU gprof. I used gcc v2.3 on Sun
OS v4.1 for compiling. I found that the profiles I got did not have "static"
functions in them, and some apparently random function was assigned the time
spent in those functions. A quick look at the manual (and info) told me that
this occurs _only_ when I gprof with -a option. (I didn't use -a)

I would like to include the static functions in the profiler output too. (Or
atleast, I don't the time spent in them to be attributed to some function in
some other module---we usually put static functions in front.) Is there
someway to turn it on? All the static functions are in ar'd and ranlib'd
libraries. Would that be a problem for the profiler? (The objects in those
libraries are also compiled with -pg, and I didn't have problems with global
functions.)

You could mail me the reply if you feel that this information wouldn't be of
general use.

-arun
-- 
+-----------------------------------------------------------------------------+
| Arun Katkere                      |   Artificial Intelligence Laboratory    |
| katkere@eecs.umich.edu            |   The University of Michigan            |
| O:(313)763-1563 | R:(313)761-9462 |   147 ATL, 1101 Beal Avenue             |
| fax: (313)763-1260                |   Ann Arbor, MI 48109-2110              |
+-----------------------------------------------------------------------------+
Technical Details
Message-ID: <1tqm4p$2qr@zip.eecs.umich.edu>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!wupost!uunet!caen!zip.eecs.umich.edu!krusty.eecs.umich.edu!katkere

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,62a396ee4abfbd40,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-05-24 07:38:19 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!wupost!uunet!caen!zip.eecs.umich.edu!krusty.eecs.umich.edu!katkere
From: katkere@krusty.eecs.umich.edu (Arun Katkere)
Newsgroups: gnu.gcc.help
Subject: GNU gprof question: -a by default?
Followup-To: gnu.gcc.help
Date: 24 May 1993 14:29:45 GMT
Organization: University of Michigan EECS Dept., Ann Arbor, MI
Lines: 28
Distribution: world
Message-ID: <1tqm4p$2qr@zip.eecs.umich.edu>
Reply-To: katkere@eecs.umich.edu
NNTP-Posting-Host: krusty.eecs.umich.edu
Keywords: gprof help.