Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
Currently, microbenchmark only allows you to capture one block of work, with certain portions opting out of measurement via
BenchmarkRule.Scope.runWithTimingDisabled {}
Proposal is to offer a variant of
measureRepeated()
which allows measuring multiple sequential stages of work, especially to enable merging benchmarks of the format:ComposeBenchmarkRule.benchmarkFirstLayout
,benchmarkFirstDraw
, etc.This should save significant runtime both locally and in CI, and allow us to more clearly compare tradeoffs when moving work from one stage of UI work to another.