Also iterate over per thread stats in a stable order, which prepares the way for stable ordering of per thread heap profile dumps.
Also iterate over per thread stats in a stable order, which prepares the way for stable ordering of per thread heap profile dumps.