[vsipl++] [patch] Profiler Configuration Options

Mark Mitchell mark at codesourcery.com
Mon Aug 14 15:02:04 UTC 2006


Jules Bergmann wrote:
> 
>>
>> I expected you to suggest making the Scope_event class itself
>> conditional:
>>
>>   class Scope_event {
>>     Scope_event (const char *name) {
>> #if PROFILING_ENABLED
>>      // Do interesting stuff.
>> #endif
>>     }
>>
> 
> The problem with this is that PROFILING_ENABLED is re-defined locally in
> each file that uses profiling.  I.e. we may have profiling turned on for
> FFT, but turned off for element-wise expressions.

Ah!

-- 
Mark Mitchell
CodeSourcery
mark at codesourcery.com
(650) 331-3385 x713



More information about the vsipl++ mailing list