They did. The Soviets didn't use GDP because it doesn't make sense for planned economies. They used Net Material Product. Another term often used in socialist economies was Gross Social Product.
Here's a Soviet economics textbook discussing how the national economy is measured under socialism, and why the measures of a national economy under capitalism are highly misleading.
The issue with modern China is that it does not operate a Soviet style planned economy. It has elements of planning and large state owned enterprises but also market mechanisms and sectors like real estate and finance which are among the main culprits for why GDP is such a distorted measure compared to the real economy. Such sectors simply did not exist in Soviet style economies, and only the DPRK still continues to follow that model today.