Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Sep 2013 11:44:34 +0200
From:      Roman Divacky <rdivacky@freebsd.org>
To:        Dominic Fandrey <kamikaze@bsdforen.de>
Cc:        freebsd-toolchain@freebsd.org
Subject:   Re: Profiling with clang
Message-ID:  <20130915094434.GA15535@freebsd.org>
In-Reply-To: <52357D49.5020907@bsdforen.de>
References:  <52357D49.5020907@bsdforen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
clang -pg should work just fine... what problems are you seeing?

On Sun, Sep 15, 2013 at 11:26:33AM +0200, Dominic Fandrey wrote:
> Recently I've been using profiling with c++ -pg a lot. I'm developing
> a simulation and have been able to more than double the performance,
> just by focusing my attention on the top functions listed in the
> profile. Inlining them, optimising them or finding ways to call them
> less often.
> 
> Even though I use clang as my compiler, for profiling I have to refer
> to the old gcc42. Is there any work on making profiling work with
> clang?
> 
> 
> On a side node, clang and gcc47 from ports produce equally fast
> binaries (there is literally no difference outside of the error margin).
> 
> For both clang and gcc47 -O3 binaries are not faster than -O2 binaries.
> They used to be slower, when the code was less polished.
> 
> -- 
> A: Because it fouls the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing on usenet and in e-mail? 
> _______________________________________________
> freebsd-toolchain@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
> To unsubscribe, send any mail to "freebsd-toolchain-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130915094434.GA15535>