use all memstats for percentiles
Merge pull request #440 from jphines/master

update memstats circular buffer