Skip to content

Commit

Permalink
Merge "Update Dialer 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 b1bc0f8 + 787d822 commit 53626c9
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 @@ -137,14 +137,15 @@ JOIN android_startups launches ON launches.package GLOB '*' || android_frame_tim
WHERE android_frame_times.number = 3 AND android_frame_times.name GLOB "*id.contacts" AND android_frame_times.startup_id = launches.startup_id;

-- Dialer
-- Dialer only runs one animation at startup, use the last animation frame to indicate startup.
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 "*id.dialer" AND android_frame_times.startup_id = launches.startup_id;
WHERE android_frame_times.ts > (SELECT ts + dur FROM animators WHERE process_name GLOB "*id.dialer" AND animator_name GLOB "*animator*" ORDER BY (ts + dur) DESC LIMIT 1) AND android_frame_times.name GLOB "*id.dialer" AND android_frame_times.startup_id = launches.startup_id LIMIT 1;

-- Facebook
INSERT INTO hsc_based_startup_times
Expand Down

0 comments on commit 53626c9

Please sign in to comment.