dmd omit framepointer

Martin Nowak dawg at dawgfoto.de
Fri Sep 30 11:23:44 PDT 2011


On Fri, 30 Sep 2011 19:48:18 +0200, Benjamin Thaut  
<code at benjamin-thaut.de> wrote:

> Am 30.09.2011 19:22, schrieb Vladimir Panteleev:
>> On Fri, 30 Sep 2011 19:51:46 +0300, Benjamin Thaut
>> <code at benjamin-thaut.de> wrote:
>>
>>> Does dmd omit framepointers in release buidls? (on windows)
>>
>> Yes.
>>
>>> If yes is there a way to turn it off?
>>
>> I think the only option is not to use -release.
>>
>> (For the record, I also don't think that putting stack frame generation
>> and disabling of asserts/etc. behind one option was a good idea.)
>>
> That is really unfortunate. I would like to profile my application  
> obviously in release build. Because of the omitted framepointer the  
> profiler can often not walk the callstack correctly and this results in  
> wrong profiling output. Not building with -release would not really  
> result in representable results when profiling.
>

You should try the good built-in profiler.
It's an instrumenting one and besides a severe slowdown in certain
situations the results are way preciser than those from a sampling  
profiler.

martin


More information about the Digitalmars-d mailing list