Real-time oxygen production on a leaf