Marco Costalba
54071312f3
Add dbg_before() and dbg_after()
...
Other two debug utilities to compute filter rate.
Usage is:
dbg_before(); // counts passages from this point
if(..) // complex code stuff you want to audit
return/continue
if(...)
.....
dbg_after(); // counts passages from this point
Then somewhere in the code, normally in poll() add
dbg_print_hit_rate() and you will see the filter rate
of your code under auditing.
Signed-off-by: Marco Costalba <mcostalba@gmail.com >
2008-10-04 10:01:54 +02:00
..
2008-09-26 05:54:49 +02:00
2008-09-18 12:26:39 +02:00
2008-09-01 07:59:13 +02:00
2008-09-01 07:59:13 +02:00
2008-09-24 00:32:53 +02:00
2008-09-25 07:51:56 +02:00
2008-09-19 13:53:36 +02:00
2008-09-19 13:53:36 +02:00
2008-09-01 07:59:13 +02:00
2008-09-01 07:59:13 +02:00
2008-09-01 07:59:13 +02:00
2008-09-01 07:59:13 +02:00
2008-09-01 07:59:13 +02:00
2008-09-01 07:59:13 +02:00
2008-09-24 21:02:15 +02:00
2008-09-01 07:59:13 +02:00
2008-09-26 05:54:49 +02:00
2008-09-26 05:54:49 +02:00
2008-09-01 07:59:13 +02:00
2008-09-01 07:59:13 +02:00
2008-09-01 07:59:13 +02:00
2008-09-20 06:53:06 +02:00
2008-09-24 00:32:53 +02:00
2008-09-24 00:32:53 +02:00
2008-09-01 07:59:13 +02:00
2008-09-24 00:32:53 +02:00
2008-09-01 07:59:13 +02:00
2008-09-21 11:51:38 +02:00
2008-10-04 10:01:54 +02:00
2008-09-24 21:02:15 +02:00
2008-09-01 07:59:13 +02:00
2008-09-24 21:02:15 +02:00
2008-09-01 07:59:13 +02:00
2008-09-18 12:26:10 +02:00
2008-09-01 07:59:13 +02:00
2008-09-24 21:02:15 +02:00
2008-09-01 07:59:13 +02:00
2008-09-01 07:59:13 +02:00
2008-09-01 07:59:13 +02:00
2008-09-01 07:59:13 +02:00
2008-10-04 09:50:19 +02:00
2008-09-28 10:58:56 +02:00
2008-09-28 10:59:08 +02:00
2008-09-24 00:32:53 +02:00
2008-09-01 07:59:13 +02:00
2008-09-01 07:59:13 +02:00
2008-09-24 00:32:53 +02:00
2008-09-18 12:27:09 +02:00
2008-09-20 06:53:06 +02:00
2008-09-24 21:02:15 +02:00
2008-09-01 07:59:13 +02:00
2008-09-01 07:59:13 +02:00
2008-09-06 15:53:43 +02:00
2008-09-24 00:32:53 +02:00
2008-09-01 07:59:13 +02:00
2008-09-18 12:27:09 +02:00
2008-09-01 07:59:13 +02:00
2008-09-03 23:29:04 +02:00
2008-09-01 07:59:13 +02:00
2008-09-01 07:59:13 +02:00
2008-09-01 07:59:13 +02:00