Lines Matching refs:first
198 if (all_.count(it->first) == 0) { in scan()
200 all_[it->first].num_samples = 0; in scan()
201 all_[it->first].name = it->first; in scan()
202 all_[it->first].avg_pss_kb = 0; in scan()
203 all_[it->first].min_pss_kb = 0; in scan()
204 all_[it->first].max_pss_kb = 0; in scan()
207 if (it->second.pids.size() > all_[it->first].max_num_pids) { in scan()
208 all_[it->first].max_num_pids = it->second.pids.size(); in scan()
211 all_[it->first].pids = it->second.pids; in scan()
213 if (it->second.pss_kb > all_[it->first].max_pss_kb) { in scan()
214 all_[it->first].max_pss_kb = it->second.pss_kb; in scan()
217 if (all_[it->first].min_pss_kb == 0 || in scan()
218 it->second.pss_kb < all_[it->first].min_pss_kb) { in scan()
219 all_[it->first].min_pss_kb = it->second.pss_kb; in scan()
222 all_[it->first].last_pss_kb = it->second.pss_kb; in scan()
224 computeAvg(&all_[it->first].avg_pss_kb, it->second.pss_kb, in scan()
225 all_[it->first].num_samples); in scan()
226 all_[it->first].num_samples++; in scan()
230 bool comparePss(const process_info_t *first, const process_info_t *second) { in comparePss() argument
231 return first->max_pss_kb > second->max_pss_kb; in comparePss()