Productivity involves effort invested / spent. So irrespective of any industry this parameter will play a crucial role. Now wrt every industry / domain, what is that resources perform is the key. Say for transport number of trucks loaded, say for oil, number of barrels filled,for software number of user requirements developed & tested or number of lines coded etc…
Any of this activity per hour can be productivity. Most of the industries have standardised this unit of measurement. For IT it is conventionally Lines of code / Hour or number of function points per hour or month is the unit of measuring productivity