I'm trying to measure client-side performance - frame rate / scrolling latency specifically - for my app. I'm wondering if anyone has found a nice way to programmatically capture this type of data? I'm trying to compare the performance across time / changes... iow, has a given change made scrolling smoother?
So far I've been doing the following:
+ start a "timeline" recording (using dev tools' "Timeline" feature / view)
+ run a simple js routine which scrolls down at a fixed rate
+ view / export / analyze Chrome's timeline data
The drawbacks to the above are that the act of scrolling the page with javascript introduces it's own performance cost and that ultimately the data I get from the timeline is... pretty thorough. Ideally, I'd be able to get at some sort of summary data - ex: average, median, 95th pct frame length / durations, and longest frame.
Anyone have any tips on this type of thing?