[olsr-dev] olsrd profiling session

Andreas Tønnesen (spam-protected)
Sun Feb 27 11:17:36 CET 2005


Sven-Ola,

> the profiling version was compiled without -DDEBUG. So I belive it's the
> olsr_printf("results %s", cpu_intensive_func_returns_string()) which eats up
> CPU time even of not -DDEBUG. So I suggest a change to:
> 
> if(0<debuglev) {
>   olsr_printf("results %s", cpu_intensive_func_returns_string());
> }
> 

I chacked in code using a macro OLSR_PRINTF last night. I have not 
updated all files yet but they will soon be all converted to using the 
macro. It is also possible to set NODEBUG causing the MACRO not to 
expand to anything. It would be interesting to se the overall effect of 
this on the WRT later on.

- Andreas

-- 
Andreas Tønnesen
http://www.olsr.org



More information about the Olsr-dev mailing list