Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

Merge PR #953: tools: keep unavailable FrameTimeline metrics out of reports

Gathin238f23bcdece3a
diff --cc tools/trace_report.py
index 730a3cdf5,fbe8022e6..4be05bc17
--- a/tools/trace_report.py
+++ b/tools/trace_report.py
@@@ -106,10 -95,11 +106,11 @@@ def _start(q, package)
out["frames"] = one(q, f"select count(*) from slice s join thread_track tt on s.track_id = tt.id "
f"where tt.utid = {render} and s.name like 'DrawFrame%' "
f"and s.ts >= {anchor} and s.ts < {anchor + WINDOW_NS}", 0)
- out["missed"] = one(q, f"select count(*) from actual_frame_timeline_slice where upid = {upid} "
- f"and jank_type like '%App Deadline Missed%' "
- f"and ts >= {anchor} and ts < {anchor + WINDOW_NS}", 0)
+ if one(q, f"select 1 from actual_frame_timeline_slice where upid = {upid} limit 1"):
+ out["missed"] = one(q, f"select count(*) from actual_frame_timeline_slice where upid = {upid} "
+ f"and jank_type like '%App Deadline Missed%' "
+ f"and ts >= {anchor} and ts < {anchor + WINDOW_NS}", 0)
- return out
+ return out, anchor, end
def nav_metrics(q, package):