Commit 6a8ef68b authored by Mikhail Khokhlov's avatar Mikhail Khokhlov Committed by Commit Bot

[tools/perf] Fix proxy power metric

Sched slices with utid = 0 correspond to the time when CPU is idle,
so they don't contribute to the total power consumption.

Bug: b/155073796
Change-Id: I072b2e9bb8984161518634633d9b4a7bf411eceb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2247893Reviewed-by: default avatarSami Kyöstilä <skyostil@chromium.org>
Commit-Queue: Mikhail Khokhlov <khokhlov@google.com>
Cr-Commit-Position: refs/heads/master@{#779328}
parent e5fb002b
......@@ -18,7 +18,8 @@ SELECT
FROM power_per_thread
WHERE
ts > (SELECT begin FROM RunStory)
AND ts + dur < (SELECT end FROM RunStory);
AND ts + dur < (SELECT end FROM RunStory)
AND utid != 0;
CREATE VIEW power_cpu_estimate_output AS
SELECT PowerCpuEstimate(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment