Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Profiling on Alpha (slightly off topic)
@ 1998-11-25  8:29 Jaap Schellekens
  1998-11-25  8:52 ` Jochen Kuepper
  1998-11-25  9:08 ` Stefan Schroepfer
  0 siblings, 2 replies; 4+ messages in thread
From: Jaap Schellekens @ 1998-11-25  8:29 UTC (permalink / raw)
  To: axp-list


Dear all,

Back in the old days (on my 25Mhz486) I used the -gp option with gcc
to get profiling info for gprof. For me this worked great. The newer
version of gcc end egcs for the alpha do not support this. Yes i know
you should use -fprofile-arcs -ftest-coverage and run gcov. 

However, this produces a lot of files but not very usefull information
(for me at least). Does anyone out there knows if egcs can be build to 
support -gp? (other profiling suggestions are welcome as well)

Thanks,

Jaap

-- 
--------------------------------------------------------------
Jaap Schellekens                E-mail:         schj@geo.vu.nl
Hydro(geo)logy Dept.            Fax:            ++31 20 6462457
Inst. of Earth Sc.              Voice:          ++31 20 4447287
Vrije Universiteit
De Boelelaan 1085               use finger schj@flow.geo.vu.nl
                                for extra information
1081 HV Amsterdam NL            See also:   http://flow.geo.vu.nl


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Profiling on Alpha (slightly off topic)
  1998-11-25  8:29 Profiling on Alpha (slightly off topic) Jaap Schellekens
@ 1998-11-25  8:52 ` Jochen Kuepper
  1998-11-25  9:15   ` Jaap Schellekens
  1998-11-25  9:08 ` Stefan Schroepfer
  1 sibling, 1 reply; 4+ messages in thread
From: Jochen Kuepper @ 1998-11-25  8:52 UTC (permalink / raw)
  To: axp-list, Jaap Schellekens

On Mit, 25 Nov 1998 Jaap Schellekens wrote:
>Dear all,
>
>Back in the old days (on my 25Mhz486) I used the -gp option with gcc
>to get profiling info for gprof. For me this worked great. The newer
>version of gcc end egcs for the alpha do not support this. Yes i know
>you should use -fprofile-arcs -ftest-coverage and run gcov. 
>
>However, this produces a lot of files but not very usefull information
>(for me at least). Does anyone out there knows if egcs can be build to 
>support -gp? (other profiling suggestions are welcome as well)

Dunno that's what you are looking for, but I use to compile with egcs using
'-p' and get a gmon.out file on every run. Then work on that with gprof.

Greetings,
Jochen
-----------------------------------------------------------------------
  Jochen K"upper

  Heinrich-Heine-Universit"at D"usseldorf   jochen@uni-duesseldorf.de
  Institut f"ur Physikalische Chemie I
  Universit"atsstr. 1, Geb 26.43 Raum 02.29    phone ++49-211-8113681
  40225 D"usseldorf                            fax   ++49-211-8115195
  Germany             http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Profiling on Alpha (slightly off topic)
  1998-11-25  8:29 Profiling on Alpha (slightly off topic) Jaap Schellekens
  1998-11-25  8:52 ` Jochen Kuepper
@ 1998-11-25  9:08 ` Stefan Schroepfer
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Schroepfer @ 1998-11-25  9:08 UTC (permalink / raw)
  To: axp-list

Jaap Schellekens wrote:
> 
> Dear all,
> 
> Back in the old days (on my 25Mhz486) I used the -gp option with gcc
> to get profiling info for gprof. For me this worked great. The newer
> version of gcc end egcs for the alpha do not support this. Yes i know
> you should use -fprofile-arcs -ftest-coverage and run gcov.

1. You must use static linkage (`-static') for profiling.
2. The profiling option is `-pg' (not `-gp').
3. For Redhat 4.x, you need two patches (profiling in 5.1 works
   out of the box):

http://www.redhat.com/support/mailing-lists/archives/axp-list/1997-March/0463.html
http://www.redhat.com/support/mailing-lists/archives/axp-list/1997-March/0464.html

> However, this produces a lot of files but not very usefull information
> (for me at least). Does anyone out there knows if egcs can be build to
> support -gp? (other profiling suggestions are welcome as well)

scr


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Profiling on Alpha (slightly off topic)
  1998-11-25  8:52 ` Jochen Kuepper
@ 1998-11-25  9:15   ` Jaap Schellekens
  0 siblings, 0 replies; 4+ messages in thread
From: Jaap Schellekens @ 1998-11-25  9:15 UTC (permalink / raw)
  To: Jochen Kuepper; +Cc: axp-list, Jaap Schellekens

Jochen Kuepper writes:
 > Dunno that's what you are looking for, but I use to compile with egcs using
 > '-p' and get a gmon.out file on every run. Then work on that with gprof.

Sounds perfect, thanks. Why did I miss that..... -- Jaap

-- 
--------------------------------------------------------------
Jaap Schellekens                E-mail:         schj@geo.vu.nl
Hydro(geo)logy Dept.            Fax:            ++31 20 6462457
Inst. of Earth Sc.              Voice:          ++31 20 4447287
Vrije Universiteit
De Boelelaan 1085               use finger schj@flow.geo.vu.nl
                                for extra information
1081 HV Amsterdam NL            See also:   http://flow.geo.vu.nl


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-11-25  9:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-25  8:29 Profiling on Alpha (slightly off topic) Jaap Schellekens
1998-11-25  8:52 ` Jochen Kuepper
1998-11-25  9:15   ` Jaap Schellekens
1998-11-25  9:08 ` Stefan Schroepfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox