Lines Matching defs:pid
175 public final int pid;
207 pid = _pid;
209 final File procDir = new File("/proc", Integer.toString(pid));
224 new File(procDir, "task"), Integer.toString(pid));
346 int pid = pids[i];
347 if (pid < 0) {
348 NP = pid;
353 if (st != null && st.pid == pid) {
360 + " pid " + pid + ": " + st);
394 mCurThreadPids = collectStats(st.threadsDir, pid, false,
399 if (DEBUG) Slog.v("Load", "Stats changed " + st.name + " pid=" + st.pid
421 if (st == null || st.pid > pid) {
423 st = new Stats(pid, parentPid, mIncludeThreads);
429 + " pid " + pid + ": " + st);
449 Slog.i(TAG, "Skipping kernel process pid " + pid
454 Slog.w(TAG, "Skipping unknown process pid " + pid);
463 mCurThreadPids = collectStats(st.threadsDir, pid, true,
471 if (DEBUG) Slog.v("Load", "Stats added " + st.name + " pid=" + st.pid
497 + " pid " + pid + ": " + st);
498 // Decrement the loop counter so that we process the current pid
515 if (localLOGV) Slog.v(TAG, "Removed pid " + st.pid + ": " + st);
521 public long getCpuTimeForPid(int pid) {
522 final String statFile = "/proc/" + pid + "/stat";
723 st.pid, st.name, (int)(st.rel_uptime+5)/10,
731 tst.pid, tst.name, (int)(st.rel_uptime+5)/10,
756 private void printProcessCPU(PrintWriter pw, String prefix, int pid, String label,
763 if (pid >= 0) {
764 pw.print(pid);