powerstats: support adding MRR stats by entity info
Bug: 321871758 Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest Change-Id: I52ddbe65606d7289faf9a2b186d8e81ff69e9a4b Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
parent
5d1a61e31d
commit
a3c3ccc7d3
2 changed files with 4 additions and 4 deletions
|
@ -647,13 +647,13 @@ void addPixelStateResidencyDataProvider(std::shared_ptr<PowerStats> p) {
|
|||
p->addStateResidencyDataProvider(std::move(pixelSdp));
|
||||
}
|
||||
|
||||
void addDisplayMrrByPath(std::shared_ptr<PowerStats> p, std::string path) {
|
||||
void addDisplayMrrByEntity(std::shared_ptr<PowerStats> p, std::string name, std::string path) {
|
||||
p->addStateResidencyDataProvider(std::make_unique<DisplayMrrStateResidencyDataProvider>(
|
||||
"Display", path));
|
||||
name, path));
|
||||
}
|
||||
|
||||
void addDisplayMrr(std::shared_ptr<PowerStats> p) {
|
||||
addDisplayMrrByPath(p, "/sys/class/drm/card0/device/primary-panel/");
|
||||
addDisplayMrrByEntity(p, "Display", "/sys/class/drm/card0/device/primary-panel/");
|
||||
}
|
||||
|
||||
void addZumaProCommonDataProviders(std::shared_ptr<PowerStats> p) {
|
||||
|
|
|
@ -24,7 +24,7 @@ void addAoC(std::shared_ptr<PowerStats> p);
|
|||
void addCPUclusters(std::shared_ptr<PowerStats> p);
|
||||
void addDevfreq(std::shared_ptr<PowerStats> p);
|
||||
void addDisplayMrr(std::shared_ptr<PowerStats> p);
|
||||
void addDisplayMrrByPath(std::shared_ptr<PowerStats> p, std::string path);
|
||||
void addDisplayMrrByEntity(std::shared_ptr<PowerStats> p, std::string name, std::string path);
|
||||
void addDvfsStats(std::shared_ptr<PowerStats> p);
|
||||
void addGNSS(std::shared_ptr<PowerStats> p);
|
||||
void addGPU(std::shared_ptr<PowerStats> p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue