Report the latency increase of pipeline stages in missed frames compared to not missed frames

This Cl reports the duration of each stage in Compositor well as the duration of each stage only
when the frame is missed.
Also a history of non missed frames will be recorded to be compared to the stages of missed frames.
If the stage duration of a missed frame is higher than 95pct of recorded history (50 instances
will be recorded), the duration increase of that stage will be also reported to UMA.

This would help with recognizing the stages which might have caused the frame to be missed.

The format for duration increase of these abnormal stages are shown in
histograms as:
"[SingleThreaded]CompositorLatency.MissedFrames.LatencyIncrease.<StageName>".

Doc:
https://docs.google.com/document/d/1UDVTqBKckFVSyxhdebCFIiupUwFmHkT7h0G_HjxZGsA/edit?usp=sharing

Bug: chromium:963785
Change-Id: Ia4bf51e4e5589154d7c02d82c32377a20719d751
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1631725
Commit-Queue: Behdad Bakhshinategh <[email protected]>
Reviewed-by: Brian White <[email protected]>
Reviewed-by: Robert Flack <[email protected]>
Reviewed-by: Sunny Sachanandani <[email protected]>
Reviewed-by: Sadrul Chowdhury <[email protected]>
Cr-Commit-Position: refs/heads/master@{#671009}
14 files changed