I think profile mode should be the same as release mode but with -g added in, otherwise it's possible I'll waste time trying to optimize a hotspot in -O2 that doesn't exist in the -O3 build. Furthermore, this would make it simple for the fedora/debian/etc... builds to build with symbols -- they just choose profile mode and be done with it.
On Mon, Jan 11, 2016 at 12:11 PM, Larry Gritz <l...@larrygritz.com> wrote: > There is nothing sacred about the current profile mode. If a different set > of flags would be more useful, let's change it. > > -- lg > > > > On Jan 11, 2016, at 7:26 AM, Thiago Ize <thi...@solidangle.com> wrote: > > > > There's a difference between symbols (-g), -DNDEBUG, and "debug mode" > (-O0, -g). If you're actually building in debug mode and then stripping > symbols, all your users are now getting a really slow and crappy OIIO > without any optimizations. What you want is to just add the debug symbols > (-g) to the release mode. Ideally the profile mode would do this for you, > but I think the profile mode in OIIO uses different optimization settings, > which makes it kind of useless (you want to profile the real code made with > -O3, not the -O2 code). > > > > > > -- > Larry Gritz > l...@larrygritz.com > > > _______________________________________________ > Oiio-dev mailing list > Oiio-dev@lists.openimageio.org > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org >
_______________________________________________ Oiio-dev mailing list Oiio-dev@lists.openimageio.org http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org