Skip to content

Commit

Permalink
Merge "Update Photos HSC Query"
Browse files Browse the repository at this point in the history
  • Loading branch information
Treehugger Robot authored and Gerrit Code Review committed Mar 15, 2023
2 parents 53626c9 + e927916 commit 131efba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/trace_processor/metrics/sql/android/startup/hsc.sql
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,15 @@ WHERE android_frame_times.ts < (SELECT ts FROM animators WHERE animator_name GLO
ORDER BY ts_total DESC LIMIT 1;

-- Photos
-- Use the animator:translationZ slice as startup indicator.
INSERT INTO hsc_based_startup_times
SELECT
launches.package AS package,
launches.startup_id AS id,
android_frame_times.ts_end - launches.ts AS ts_total
FROM android_frame_times
JOIN android_startups launches ON launches.package GLOB '*' || android_frame_times.name || '*'
WHERE android_frame_times.number = 1 AND android_frame_times.name GLOB "*apps.photos*" AND android_frame_times.startup_id = launches.startup_id;
WHERE android_frame_times.ts > (SELECT ts + dur FROM animators WHERE process_name GLOB "*apps.photos" AND animator_name GLOB "animator:translationZ" ORDER BY (ts + dur) DESC LIMIT 1) AND android_frame_times.name GLOB "*apps.photos*" AND android_frame_times.startup_id = launches.startup_id LIMIT 1;

-- Settings was deprecated in favor of reportFullyDrawn b/169694037.

Expand Down

0 comments on commit 131efba

Please sign in to comment.