Lines Matching refs:residency
75 bool Mincore(size_t start, size_t end, std::vector<unsigned char>* residency) { in Mincore() argument
80 if (residency->size() != size_in_pages) in Mincore()
81 residency->resize(size_in_pages); in Mincore()
83 mincore(reinterpret_cast<void*>(start), size, &(*residency)[0])); in Mincore()
127 std::vector<unsigned char> residency; member
130 std::vector<unsigned char>&& residency) in TimestampAndResidency()
131 : timestamp_nanos(timestamp_nanos), residency(residency) {} in TimestampAndResidency()
147 std::vector<unsigned char> residency; in CollectResidency() local
148 if (!Mincore(start, end, &residency)) in CollectResidency()
151 data->emplace_back(now, std::move(residency)); in CollectResidency()
182 dump.reserve(data_point.residency.size() + 1); in DumpResidency()
183 for (auto c : data_point.residency) in DumpResidency()
285 std::vector<unsigned char> residency; in PercentageOfResidentCode() local
286 bool ok = Mincore(start, end, &residency); in PercentageOfResidentCode()
289 total_pages += residency.size(); in PercentageOfResidentCode()
290 resident_pages += std::count_if(residency.begin(), residency.end(), in PercentageOfResidentCode()