Saving stats to file

Hey @zompi2 sorry for the 7 year later answer. (lol)
I am using your function to gather stats information, the thing is, it works only with Counters and Memory stats, not for Timer stats (in the NonStackStats variable there are no Timer stats).

Do you remember why?