Add measure_stack_size.