[vsipl++] [patch] Profiler Configuration Options

Jules Bergmann jules at codesourcery.com
Mon Aug 14 11:27:08 UTC 2006


> 
> 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.


-- 
Jules Bergmann
CodeSourcery
jules at codesourcery.com
(650) 331-3385 x705



More information about the vsipl++ mailing list