On Wed, 28 Nov 2012, Kirk, Benjamin (JSC-EG311) wrote:

> If at all possible I'd rather treat that as --enable-gprof and add
> the flags to the existing dbg, devel, opt flags

The trouble with this is that the gprof and oprof flags aren't without
cost.  IIRC "-pg" adds in extra code (including synchronous writes to
disk!!); "-fno-omit-frame-pointer" turns off an optimization that even
"-O" includes by default; and I suppose even "-g" must have some cost
or we'd have added it to METHOD=opt already.

So if you mix profiling with optimization, the result isn't really
optimized.

But if you mix profiling with debug/devel modes, then your runtime
data is all swamped by the costs of internal tests and disabled
optimizations, so the result isn't really profiling.
---
Roy

------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to