Measurement of the entropy production due to irreversible deformation of metals