DescriptionFix SysfsPowerMonitor to let it work even if |browser| is None
measurements/tab_switching.py creates power.PowerMetric (which calls StartMonitoringPower() in __init__) in WillStartBrowser() where |browser| is still None.
SysfsPowerMonitor should not expect |browser| to be always valid.
With this change, tab_switching.top_10 can output power related values as the result.
BUG=443077, 433442
TEST=tools/perf/run_benchmark --browser=cros-chrome --remote=172.23.69.61 tab_switching.top_10
Committed: https://crrev.com/9d1b7b54e996fba5b17d8f17769bebb69f2cc812
Cr-Commit-Position: refs/heads/master@{#309337}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Fix DumpsysPowerMonitor #
Total comments: 3
Patch Set 3 : Address comments #
Messages
Total messages: 17 (5 generated)
|