It is imposible to measure developer productivity. Software development is more like research and it's output (software) IS the increase of productivity - someone else's productivity usualy.
The majority of buisnesses do not understand the economics of software so I am not surprised we live this productivity metric chaos