C++ Profiling (64 Views)
Reply
Occasional Contributor
Chris_164
Posts: 12
Registered: ‎08-06-2002
Message 1 of 3 (64 Views)

C++ Profiling

Can anyone tell me where I can get gprof++ for profiling programs that are compiled with aCC?

Thanks,
Chris Thompson
Honored Contributor
Steve Steel
Posts: 2,909
Registered: ‎02-13-2000
Message 2 of 3 (64 Views)

Re: C++ Profiling

Hi


You need fileset
ProgSupport.PROG-AUX
and any related patches

See below

Steve steel

# swlist -l fileset|grep -i ProgSupport.PROG-AUX
PHCO_27434.PROG-AUX 1.0 ProgSupport.PROG-AUX
ProgSupport.PROG-AUX B.11.11 PROG-AUX
# swlist -l file|grep gprof
OS-Core.CORE-64SLIB: /usr/lib/pa20_64/libgprof.1
OS-Core.CORE-64SLIB: /usr/lib/pa20_64/libgprof.a
OS-Core.CORE-64SLIB: /usr/lib/pa20_64/libgprof.sl
OS-Core.CORE-KRN: /usr/conf/sys/gprof.h
OS-Core.CORE-SHLIBS: /usr/lib/libgprof.1
OS-Core.CORE-SHLIBS: /usr/lib/libgprof32.sl
ProgSupport.C-INC: /usr/include/sys/gprof.h
ProgSupport.PAUX-ENG-A-MAN: /usr/share/man/man1.Z/gprof.1
ProgSupport.PAUX-JPN-E-MAN: /usr/share/man/ja_JP.eucJP/man1.Z/gprof.1

ProgSupport.PAUX-JPN-S-MAN: /usr/share/man/ja_JP.SJIS/man1.Z/gprof.1

ProgSupport.PROG-AUX: /usr/ccs/bin/gprof
ProgSupport.PROG-AUX: /usr/lib/gprof.callg
ProgSupport.PROG-AUX: /usr/lib/gprof.flat
gprof(1) gprof(1)

NAME
gprof - display call graph profile data

SYNOPSIS
gprof [options] [a.out [gmon.out...]] [shared_library
shared_library_profile]

DESCRIPTION
The gprof command produces an execution profile of C++, C, Pascal, and
FORTRAN programs. The effect of called routines is incorporated into
the profile of each caller. Profile data is taken from the call graph
profile file (gmon.out default) that is created by programs compiled
with the -G option of aCC, CC, cc, pc, and f77.
If you want truly to understand something, try to change it. (Kurt Lewin)
Honored Contributor
rick jones
Posts: 3,814
Registered: ‎12-02-1996
Message 3 of 3 (64 Views)

Re: C++ Profiling

you might also consider downloading and using prospect - there should be an up-to-date version on ftp.cup.hp.com under dist/networking/tools/ and also on the developers portal - I get there by starting at http://devresource.hp.com/
there is no rest for the wicked yet the virtuous have no pillows
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.