diff options
| author | 2019-11-13 04:09:18 -0800 | |
|---|---|---|
| committer | 2019-11-13 04:09:18 -0800 | |
| commit | 9d2bdf25354e7dda4185f48afa01b289b48b59d8 (patch) | |
| tree | 9a96eed3bc604441d61ffc1e8d4d0e455993ae44 /services/surfaceflinger/SurfaceFlinger.cpp | |
| parent | baf843bde5f39ec884956fb5cc51bb474f567714 (diff) | |
| parent | 104972e936878217d011a974c0e4a90280531a2d (diff) | |
Merge "[DO NOT MERGE] Log Winscope tracing with the frame composition time"
am: 104972e936
Change-Id: I2f80936a8daffacf73363b6d338f27a16f30a3de
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
| -rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 200da2e814..60b3a11754 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -1825,6 +1825,7 @@ void SurfaceFlinger::handleMessageRefresh() { preComposition(); rebuildLayerStacks(); calculateWorkingSet(); + long compositionTime = elapsedRealtimeNano(); for (const auto& [token, display] : mDisplays) { beginFrame(display); prepareFrame(display); @@ -1854,7 +1855,7 @@ void SurfaceFlinger::handleMessageRefresh() { if (mVisibleRegionsDirty) { mVisibleRegionsDirty = false; if (mTracingEnabled) { - mTracing.notify("visibleRegionsDirty"); + mTracing.notify(compositionTime, "visibleRegionsDirty"); } } } |