[MacPorts] #44628: gprof for Mac via MacPorts
MacPorts
noreply at macports.org
Wed Aug 13 08:03:45 PDT 2014
#44628: gprof for Mac via MacPorts
----------------------------+--------------------------------
Reporter: ben.haefele@… | Owner: macports-tickets@…
Type: request | Status: new
Priority: Low | Milestone:
Component: ports | Version: 2.3.1
Resolution: | Keywords: gprof
Port: N.A. |
----------------------------+--------------------------------
Comment (by ben.haefele@…):
Replying to [comment:1 ryandesign@…]:
> /usr/bin/gprof is included in OS X but it's probably BSD gprof not GNU
gprof.
>
> GNU gprof is part of binutils, isn't it? We have a binutils port, but it
doesn't install gprof; I don't know why. Maybe GNU gprof is not compatible
with OS X. Or maybe gprof is not installed by default, but could be, by
some means. If you can figure out what those means are, let us know.
Yes, gprof is part of binutils. It is not installed in /usr/bin/gprof/on
my machine?!?
There are some problems, e.g. with g++/gcc-mp-4.8/2.9 the flag -pg does
not work..... see: [https://rachelbythebay.com/w/2012/09/14/mac/]
If there is a compiler which handles the flag "-pg" and therefore produces
"gmon.out" I could test gprof. First question would be which compiler
implementation can handle the relevant flag "-pg"!?! Or am I on the wrong
track?
--
Ticket URL: <https://trac.macports.org/ticket/44628#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list