Home | History | Annotate | Download | only in browser

Lines Matching refs:pid

28 static bool GetKInfoForProcessID(pid_t pid, kinfo_proc* kinfo) {
29 int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PID, pid};
45 pid_t pid,
63 int mib[] = {CTL_KERN, KERN_PROCARGS, pid};
136 argv.push_back("pid=,rss=,vsz=");
158 // "-o pid=,rss=,vsz=".
159 // Try to read the PID; if we get it, we should be able to get the rest of
161 pid_t pid;
162 in >> pid;
166 ProcessInfoSnapshot::ProcInfoEntry proc_info = proc_info_entries[pid];
167 proc_info.pid = pid;
179 if (!proc_info.pid || ! proc_info.vsize) {
185 proc_info_entries[proc_info.pid] = proc_info;
199 argv.push_back("pid," // Process ID
220 // PID RSIZE RSHRD RPRVT VSIZE
228 // Try to read the PID.
229 pid_t pid;
230 in >> pid;
235 if (proc_info_entries.find(pid) == proc_info_entries.end())
238 // Skip the - or + sign that top puts after the pid.
263 ProcessInfoSnapshot::ProcInfoEntry proc_info = proc_info_entries[pid];
269 proc_info_entries[proc_info.pid] = proc_info;
283 argv.push_back("^aaaaaaaaaaaaaaaaaaaa " // Process ID (PID)
304 // PID RSIZE RSHRD RPRVT VSIZE
312 // Try to read the PID.
313 pid_t pid;
314 in >> pid;
319 if (proc_info_entries.find(pid) == proc_info_entries.end())
332 ProcessInfoSnapshot::ProcInfoEntry proc_info = proc_info_entries[pid];
338 proc_info_entries[proc_info.pid] = proc_info;
361 proc_info.pid = *it;
409 bool ProcessInfoSnapshot::GetProcInfo(int pid,
411 std::map<int,ProcInfoEntry>::const_iterator it = proc_info_entries_.find(pid);
420 int pid,
430 if (!GetProcInfo(pid, &proc_info)) {
444 int pid,
454 if (!GetProcInfo(pid, &proc_info)) {