Skip to content

Commit

Permalink
Merge "tp: Cast millicycles to int" into main
Browse files Browse the repository at this point in the history
  • Loading branch information
aMayzner authored and Gerrit Code Review committed Aug 25, 2023
2 parents 99f233f + 562027a commit 1d0ca00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ SELECT
-- i.e. divide by 1e3 in total.
-- We use millicycles as we want to preserve this level of precision
-- for future calculations.
SUM(dur * freq_khz / 1000) AS millicycles,
CAST(SUM(dur * freq_khz / 1000) AS INT) AS millicycles,
CAST(SUM(dur * freq_khz / 1000) / 1e9 AS INT) AS mcycles,
SUM(dur) AS runtime_ns,
MIN(freq_khz) AS min_freq_khz,
Expand Down
2 changes: 1 addition & 1 deletion src/trace_processor/metrics/sql/android/anr/anrs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

-- One row per ANR that occurred in the trace.
DROP TABLE IF EXISTS android_anr_anrs;
CREATE TABLE android_anr_anrs AS
CREATE PERFETTO TABLE android_anr_anrs AS
-- Process and PID that ANRed.
WITH anr_process AS (
SELECT
Expand Down

0 comments on commit 1d0ca00

Please sign in to comment.