powerstats: add GPU-DVFS
Bug: 193542516 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: I7490a172932338e90d8886b1e26a5c05d4544647
This commit is contained in:
parent
b14db4c9a6
commit
aeae45a3ea
1 changed files with 3 additions and 0 deletions
|
@ -400,6 +400,9 @@ void addGPU(std::shared_ptr<PowerStats> p) {
|
||||||
EnergyConsumerType::OTHER, "GPU", {"S2S_VDD_G3D"},
|
EnergyConsumerType::OTHER, "GPU", {"S2S_VDD_G3D"},
|
||||||
{{UID_TIME_IN_STATE, "/sys/devices/platform/1c500000.mali/uid_time_in_state"}},
|
{{UID_TIME_IN_STATE, "/sys/devices/platform/1c500000.mali/uid_time_in_state"}},
|
||||||
stateCoeffs));
|
stateCoeffs));
|
||||||
|
|
||||||
|
p->addStateResidencyDataProvider(std::make_unique<DevfreqStateResidencyDataProvider>("GPU",
|
||||||
|
"/sys/bus/platform/devices/1c500000.mali"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void addMobileRadio(std::shared_ptr<PowerStats> p)
|
void addMobileRadio(std::shared_ptr<PowerStats> p)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue