This is analogue to what we do in emper/stats/worker.cpp since 46302a0f.
merged
mentioned in commit 4d90dfc0