Lines Matching defs:proc_info
165 ProcessInfoSnapshot::ProcInfoEntry proc_info = proc_info_entries[pid];
166 proc_info.pid = pid;
167 in >> proc_info.rss;
168 in >> proc_info.vsize;
169 proc_info.rss *= 1024; // Convert from kilobytes to bytes.
170 proc_info.vsize *= 1024;
178 if (!proc_info.pid || ! proc_info.vsize) {
184 proc_info_entries[proc_info.pid] = proc_info;
263 ProcessInfoSnapshot::ProcInfoEntry proc_info = proc_info_entries[pid];
264 proc_info.rss = values[0];
265 proc_info.rshrd = values[1];
266 proc_info.rprvt = values[2];
267 proc_info.vsize = values[3];
269 proc_info_entries[proc_info.pid] = proc_info;
290 ProcInfoEntry proc_info;
291 proc_info.pid = *it;
297 proc_info.ppid = kinfo.kp_eproc.e_ppid;
298 proc_info.uid = kinfo.kp_eproc.e_pcred.p_ruid;
299 proc_info.euid = kinfo.kp_eproc.e_ucred.cr_uid;
301 proc_info.command = kinfo.kp_proc.p_comm;
302 proc_info_entries_[*it] = proc_info;
311 ProcInfoEntry proc_info = proc_info_entries_[*it];
312 proc_info.command = exectuable_name;
352 ProcInfoEntry* proc_info) const {
357 *proc_info = it->second;
371 ProcInfoEntry proc_info;
372 if (!GetProcInfo(pid, &proc_info)) {
379 usage->priv = proc_info.vsize / 1024;
395 ProcInfoEntry proc_info;
396 if (!GetProcInfo(pid, &proc_info)) {
403 ws_usage->priv = proc_info.rprvt / 1024;
404 ws_usage->shareable = proc_info.rss / 1024;
405 ws_usage->shared = proc_info.rshrd / 1024;