Home
last modified time | relevance | path

Searched refs:residency (Results 1 – 4 of 4) sorted by relevance

/device/google/gs-common/powerstats/
DAocTimedStateResidencyDataProvider.cpp62 for (const auto &residency : mStateResidencies) { in getStateResidencies() local
63 residencies->emplace(residency.first, residency.second); in getStateResidencies()
92 std::unordered_map<std::string, std::vector<StateResidency>> residency; in getStateResidenciesAsync() local
93 provider->getStateResidencies(&residency); in getStateResidenciesAsync()
96 if (residency.find(curEntity) != residency.end()) { in getStateResidenciesAsync()
97 for (auto &r : residency.at(curEntity)) { in getStateResidenciesAsync()
DUfsStateResidencyDataProvider.cpp43 StateResidency residency; in getStateResidencies() local
44 residency.id = HIBERNATE_STATE_ID; in getStateResidencies()
49 residency.totalTimeInStateMs = usecToMs(readStat(kPrefix + "hibern8_total_us")); in getStateResidencies()
50 residency.totalStateEntryCount = readStat(kPrefix + "hibern8_exit_cnt"); in getStateResidencies()
51 residency.lastEntryTimestampMs = usecToMs(readStat(kPrefix + "last_hibern8_enter_time")); in getStateResidencies()
53 residencies->emplace(UFS_NAME, std::vector<StateResidency>{residency}); in getStateResidencies()
DAocStateResidencyDataProvider.cpp70 std::unordered_map<std::string, std::vector<StateResidency>> residency; in getStateResidencies() local
71 ret &= provider->getStateResidencies(&residency); in getStateResidencies()
74 if (residency.find(curEntity) != residency.end()) { in getStateResidencies()
75 for (auto &r : residency.at(curEntity)) { in getStateResidencies()
/device/google/coral/pwrstats_util/
DCstateResidencyDataProvider.cpp41 auto residency = residencies->add_residency(); in getImpl() local
42 residency->set_entity_name(matches[1]); in getImpl()
43 residency->set_state_name(matches[2]); in getImpl()
50 residency->set_time_ms(static_cast<uint64_t>(val * 1000)); in getImpl()
76 auto startResidency = start.c_state_residency().residency(); in getImpl()
90 StateResidencyDump(stat.c_state_residency().residency(), output); in dumpImpl()