summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Kean Mariotti <keanmariotti@google.com> 2023-12-15 09:34:25 +0000
committer Kean Mariotti <keanmariotti@google.com> 2023-12-19 10:29:49 +0000
commitca20f2dff2a54ef67290da8173ee252e2456c03d (patch)
treebb15763d27e372a851e71afffdc51d505b3abda9 /services/surfaceflinger/RegionSamplingThread.cpp
parent926dbea7a7abef622dd3d5f73a3e07773450f073 (diff)
Fix late screenshot
Because of these two recent changes: 1. Do 'SERIALIZE PERFETTO TRACE' before 'DUMPSYS CRITICAL' to avoid polluting perfetto traces (b/296650898). 2. Do some more expensive post-processing in 'SERIALIZE PERFETTO TRACE' (increased latency). the screenshot was beeing taken too late: 1. 'SERIALIZE PERFETTO TRACE' 2. 'DUMPSYS CRITICAL' 3. Take screenshot (got here too late!) This commit changes the order to hide the 'SERIALIZE PERFETTO TRACE' latency: 1. Launch async 'SERIALIZE PERFETTO TRACE' 2. 'DUMPSYS CRITICAL' 3. Take screenshot (get here without waiting perfetto serialization) 4. Wait 'SERIALIZE PERFETTO TRACE' completion Fix: b/316110955 Test: atest dumpstate_test dumpstate_smoke_test com.android.os.bugreports.tests.BugreportManagerTest Ignore-AOSP-First: depends on changes (surfaceflinger) that cannot go into AOSP Change-Id: I343813929a537c601132dd15db5e2c4d3fbbdcb1
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions