clean up num_counters
fix/clean up scheduler call
always use set operations with ingroup_events
move perf setup out of measure