summaryrefslogtreecommitdiff
path: root/libs/hwui/ProfileDataContainer.cpp
AgeCommit message (Collapse)Author
2021-07-09Properly protect mFrameMetricsReporterSiarhei Vishniakou
This field actually requires a special lock, mFrameMetricsReporterMutex. But there isn't a GUARDED_BY annotation for it. And even if there was, the compiler feature of -Wthread-safety was not active in this code, so this error would not have been caught. To fix this, enable the compiler annotation and add GUARDED_BY annotation to mFrameMetricsReporter. And finally, use this lock to properly protect this field. Bug: 192330836 Test: atest hwui_unit_tests Change-Id: I76950bfa01bbd7ccdc54c4e8c114430b5aeddf1a
2021-02-17Add GPU completion to FrameMetrics (1/3)Jorim Jaggi
- Add SurfaceStatsCallback to TransactionCompletedListener - Register a callback in RenderProxy to be called when we have surface stats from SF via the BLAST callback. - Instead of finishing a frame for frame metrics reporting immediately, wait until BLAST callback fires, note GPU completion time and finish frame. - Expose GPU_COMPLETION in FrameMetrics - Modify TOTAL_DURATION to also include GPU_COMPLETION Test: FrameMetricsListenerTest Fixes: 171046219 Change-Id: I16fa1d80cfc4e7a5527c18fec7e885409f17ee4d
2017-12-13Merge "Include what we use." am: b0efcc1f68 am: afa15b0846Dan Albert
am: 83a1241e5a Change-Id: I829bad9fe74620b40599eeba745743679e04eba6
2017-12-12Include what we use.Dan Albert
Test: mma Bug: None Change-Id: I9458aedad9a84f1660d3a2b08717b111dc8e3b74 Exempt-From-Owner-Approval: trivial cleanup
2017-11-03Format the world (or just HWUI)John Reck
Test: No code changes, just ran through clang-format Change-Id: Id23aa4ec7eebc0446fe3a30260f33e7fd455bb8c
2017-10-12Add missing includes.Dan Albert
Change-Id: I652b42aa8355e66405d3207e61d577b5ddf9ae17 Exempt-From-Owner-Approval: trivial cleanup Test: mma Bug: None
2017-07-05Move frame history into jank trackerJohn Reck
Test: hwui_unit_tests & manual Change-Id: If761947652750640268217cd8cd97c8382441b44