Primary productivity in an ecosystem can be measured using carbon dioxide consumption and oxygen consumption. These methods reflect the rates of photosynthesis and respiration, which are key indicators of productivity.
However, since the question asks for one measure, the best option is typically carbon dioxide consumption, as it directly correlates with the process of photosynthesis where plants take in CO2 to produce organic matter.