Timesliced reservoir sampling: a new(?) algorithm for profilers
Summary
Timesliced reservoir sampling proposed to evenly spread samples over time by dividing the stream into equal timeslices and drawing one sample per slice, improving timeline visualizations for profilers. It relaxes exact K-output guarantees while preserving useful sampling properties and offers practical guidance and Python code references.