It's probably misguided to aim for highly quantitative measurements. If productivity is measured as output per input, you have a lot of flexibility in how to define the relevant output - e.g. hitting well-defined product goals or milestones (versus e.g. lines of code, which seems wrong).