Productivity is calculated as a ratio value_produced / value_consumed. The latter, in software world, is a sum of all benefits, salaries, technology used to produce value, etc.
What is missing in the current software world is the way of calculating the value produced.