https://mytecharm.com.co/post/timesliced-reservoir-sampling-a-new-algorithm-for-profilers-llgfa6