Home | History | Annotate | Download | only in base

Lines Matching refs:pid

34 // Reads /proc/<pid>/stat and populates |proc_stats| with the values split by
36 bool GetProcStats(pid_t pid, std::vector<std::string>* proc_stats) {
41 stat_file = stat_file.Append(base::IntToString(pid));
50 // Reads /proc/<pid>/cmdline and populates |proc_cmd_line_args| with the command
52 // Note: /proc/<pid>/cmdline contains command line arguments separated by single
55 bool GetProcCmdline(pid_t pid, std::vector<std::string>* proc_cmd_line_args) {
60 cmd_line_file = cmd_line_file.Append(base::IntToString(pid));
73 int GetProcessCPU(pid_t pid) {
77 // Use /proc/<pid>/task to find all threads and parse their /stat file.
78 FilePath path = FilePath(StringPrintf("/proc/%d/task/", pid));
201 int pid;
202 if (StringToInt(pid_string, &pid) && !GetProcCmdline(pid, &cmd_line_args))
218 // pid (name) runstate ppid gid
248 // TODO(port): read pid's commandline's $0, like killall does. Using the
338 // Private and Shared working set sizes are obtained from /proc/<pid>/smaps.
339 // When that's not available, use the values from /proc<pid>/statm as a
528 // /proc/<pid>/stat contains the process name in parens. In case the