added num_blocks option to batch_profiler