Home
last modified time | relevance | path

Searched refs:proc_info (Results 1 – 25 of 41) sorted by relevance

12

/external/chromium_org/chrome/browser/
Dprocess_info_snapshot_mac_unittest.cc32 ProcessInfoSnapshot::ProcInfoEntry proc_info; in TEST_F() local
33 ASSERT_TRUE(snapshot.GetProcInfo(1, &proc_info)); in TEST_F()
34 EXPECT_EQ(1, static_cast<int64>(proc_info.pid)); in TEST_F()
35 EXPECT_EQ(0, static_cast<int64>(proc_info.ppid)); in TEST_F()
36 EXPECT_EQ(0, static_cast<int64>(proc_info.uid)); in TEST_F()
37 EXPECT_EQ(0, static_cast<int64>(proc_info.euid)); in TEST_F()
38 EXPECT_GE(proc_info.rss, 0u); in TEST_F()
39 EXPECT_GT(proc_info.vsize, 0u); in TEST_F()
49 EXPECT_FALSE(snapshot.GetProcInfo(2, &proc_info)); in TEST_F()
52 EXPECT_FALSE(snapshot.GetProcInfo(2, &proc_info)); in TEST_F()
[all …]
Dprocess_info_snapshot_mac.cc164 ProcessInfoSnapshot::ProcInfoEntry proc_info = proc_info_entries[pid]; in GetProcessMemoryInfoUsingPS() local
165 proc_info.pid = pid; in GetProcessMemoryInfoUsingPS()
166 in >> proc_info.rss; in GetProcessMemoryInfoUsingPS()
167 in >> proc_info.vsize; in GetProcessMemoryInfoUsingPS()
168 proc_info.rss *= 1024; // Convert from kilobytes to bytes. in GetProcessMemoryInfoUsingPS()
169 proc_info.vsize *= 1024; in GetProcessMemoryInfoUsingPS()
171 std::getline(in, proc_info.command); // Get the rest of the line. in GetProcessMemoryInfoUsingPS()
177 if (!proc_info.pid || ! proc_info.vsize) { in GetProcessMemoryInfoUsingPS()
183 proc_info_entries[proc_info.pid] = proc_info; in GetProcessMemoryInfoUsingPS()
259 ProcessInfoSnapshot::ProcInfoEntry proc_info = proc_info_entries[pid]; in GetProcessMemoryInfoUsingTop() local
[all …]
Dmemory_details_mac.cc158 ProcessInfoSnapshot::ProcInfoEntry proc_info; in CollectProcessData() local
159 if (process_info.GetProcInfo(info.pid, &proc_info)) { in CollectProcessData()
160 if (proc_info.command.length() > 1 && proc_info.command[0] == '/') { in CollectProcessData()
162 base::mac::GetAppBundlePath(base::FilePath(proc_info.command)); in CollectProcessData()
Dprocess_info_snapshot.h69 ProcInfoEntry* proc_info) const;
/external/chromium_org/third_party/webrtc/base/
Dlinux_unittest.cc22 ProcCpuInfo proc_info; in TEST() local
23 EXPECT_TRUE(proc_info.LoadFromSystem()); in TEST()
26 EXPECT_TRUE(proc_info.GetNumCpus(&out_cpus)); in TEST()
31 EXPECT_TRUE(proc_info.GetNumPhysicalCpus(&out_cpus_phys)); in TEST()
37 EXPECT_TRUE(proc_info.GetCpuFamily(&out_family)); in TEST()
43 EXPECT_TRUE(proc_info.GetSectionStringValue(0, "Processor", &out_processor)); in TEST()
51 EXPECT_TRUE(proc_info.GetSectionIntValue(0, "model", &out_model)); in TEST()
55 EXPECT_TRUE(proc_info.GetSectionIntValue(0, "stepping", &out_stepping)); in TEST()
59 EXPECT_TRUE(proc_info.GetSectionIntValue(0, "processor", &out_processor)); in TEST()
64 EXPECT_TRUE(proc_info.GetSectionStringValue(0, "vendor_id", &out_str)); in TEST()
Dsysteminfo.cc172 ProcCpuInfo proc_info; in SystemInfo() local
173 if (proc_info.LoadFromSystem()) { in SystemInfo()
174 proc_info.GetNumCpus(&logical_cpus_); in SystemInfo()
175 proc_info.GetNumPhysicalCpus(&physical_cpus_); in SystemInfo()
176 proc_info.GetCpuFamily(&cpu_family_); in SystemInfo()
179 proc_info.GetSectionIntValue(0, "model", &cpu_model_); in SystemInfo()
180 proc_info.GetSectionIntValue(0, "stepping", &cpu_stepping_); in SystemInfo()
181 proc_info.GetSectionIntValue(0, "cpu MHz", &cpu_speed_); in SystemInfo()
182 proc_info.GetSectionIntValue(0, "cache size", &cache_size_); in SystemInfo()
/external/chromium_org/third_party/libjingle/source/talk/base/
Dlinux_unittest.cc39 ProcCpuInfo proc_info; in TEST() local
40 EXPECT_TRUE(proc_info.LoadFromSystem()); in TEST()
43 EXPECT_TRUE(proc_info.GetNumCpus(&out_cpus)); in TEST()
48 EXPECT_TRUE(proc_info.GetNumPhysicalCpus(&out_cpus_phys)); in TEST()
54 EXPECT_TRUE(proc_info.GetCpuFamily(&out_family)); in TEST()
60 EXPECT_TRUE(proc_info.GetSectionStringValue(0, "Processor", &out_processor)); in TEST()
68 EXPECT_TRUE(proc_info.GetSectionIntValue(0, "model", &out_model)); in TEST()
72 EXPECT_TRUE(proc_info.GetSectionIntValue(0, "stepping", &out_stepping)); in TEST()
76 EXPECT_TRUE(proc_info.GetSectionIntValue(0, "processor", &out_processor)); in TEST()
81 EXPECT_TRUE(proc_info.GetSectionStringValue(0, "vendor_id", &out_str)); in TEST()
Dsysteminfo.cc189 ProcCpuInfo proc_info; in SystemInfo() local
190 if (proc_info.LoadFromSystem()) { in SystemInfo()
191 proc_info.GetNumCpus(&logical_cpus_); in SystemInfo()
192 proc_info.GetNumPhysicalCpus(&physical_cpus_); in SystemInfo()
193 proc_info.GetCpuFamily(&cpu_family_); in SystemInfo()
196 proc_info.GetSectionIntValue(0, "model", &cpu_model_); in SystemInfo()
197 proc_info.GetSectionIntValue(0, "stepping", &cpu_stepping_); in SystemInfo()
198 proc_info.GetSectionIntValue(0, "cpu MHz", &cpu_speed_); in SystemInfo()
199 proc_info.GetSectionIntValue(0, "cache size", &cache_size_); in SystemInfo()
/external/chromium_org/chrome/test/base/
Dchrome_process_util_mac.cc50 MacChromeProcessInfo proc_info; in GetRunningMacProcessInfo() local
53 proc_info.pid = pid; in GetRunningMacProcessInfo()
54 base::StringToInt(values[1], &proc_info.rsz_in_kb); in GetRunningMacProcessInfo()
55 base::StringToInt(values[2], &proc_info.vsz_in_kb); in GetRunningMacProcessInfo()
56 if (proc_info.pid && proc_info.rsz_in_kb && proc_info.vsz_in_kb) in GetRunningMacProcessInfo()
57 result.push_back(proc_info); in GetRunningMacProcessInfo()
/external/chromium_org/tools/telemetry/telemetry/core/platform/
Dmac_platform_backend.py79 proc_info = ProcTaskInfo()
82 self.libproc.proc_pidinfo(pid, proc_info.PROC_PIDTASKINFO, 0,
83 ctypes.byref(proc_info), proc_info.size)
86 cpu_time = (proc_info.pti_total_user / 1000000000.0 +
87 proc_info.pti_total_system / 1000000000.0)
89 'ContextSwitches': proc_info.pti_csw}
/external/lldb/tools/debugserver/source/
DRNBServices.cpp50 struct kinfo_proc &proc_info = proc_infos[i]; in GetPrcoesses() local
57 kinfo_user_matches = proc_info.kp_eproc.e_pcred.p_ruid == our_uid; in GetPrcoesses()
60 const pid_t pid = proc_info.kp_proc.p_pid; in GetPrcoesses()
65 proc_info.kp_proc.p_stat == SZOMB || // Zombies are bad, they like brains... in GetPrcoesses()
66 proc_info.kp_proc.p_flag & P_TRACED || // Being debugged? in GetPrcoesses()
67 proc_info.kp_proc.p_flag & P_WEXIT || // Working on exiting? in GetPrcoesses()
68 proc_info.kp_proc.p_flag & P_TRANSLATED) // Skip translated ppc (Rosetta) in GetPrcoesses()
82 const char *pid_basename = proc_info.kp_proc.p_comm; in GetPrcoesses()
/external/lldb/source/Plugins/Process/gdb-remote/
DGDBRemoteCommunicationServer.cpp281 CreateProcessInfoResponse (const ProcessInstanceInfo &proc_info, StreamString &response) in CreateProcessInfoResponse() argument
284 proc_info.GetProcessID(), in CreateProcessInfoResponse()
285 proc_info.GetParentProcessID(), in CreateProcessInfoResponse()
286 proc_info.GetUserID(), in CreateProcessInfoResponse()
287 proc_info.GetGroupID(), in CreateProcessInfoResponse()
288 proc_info.GetEffectiveUserID(), in CreateProcessInfoResponse()
289 proc_info.GetEffectiveGroupID()); in CreateProcessInfoResponse()
291 response.PutCStringAsRawHex8(proc_info.GetName()); in CreateProcessInfoResponse()
293 const ArchSpec &proc_arch = proc_info.GetArchitecture(); in CreateProcessInfoResponse()
311 ProcessInstanceInfo proc_info; in Handle_qProcessInfoPID() local
[all …]
/external/chromium_org/sandbox/win/src/
Dprocess_thread_interception.cc302 InOutCountedBuffer proc_info(process_information, in TargetCreateProcessW() local
306 command_line, cur_dir, proc_info, &answer); in TargetCreateProcessW()
380 InOutCountedBuffer proc_info(process_information, in TargetCreateProcessA() local
384 cmd_line, cur_dir, proc_info, &answer); in TargetCreateProcessA()
Dsandbox_nt_util.cc269 PROCESS_BASIC_INFORMATION proc_info; in GetProcessId() local
273 &proc_info, sizeof(proc_info), in GetProcessId()
275 if (!NT_SUCCESS(ret) || sizeof(proc_info) != bytes_returned) in GetProcessId()
278 *process_id = proc_info.UniqueProcessId; in GetProcessId()
Dprocess_thread_dispatcher.cc233 PROCESS_INFORMATION* proc_info = in CreateProcessW() local
239 proc_info); in CreateProcessW()
/external/lldb/source/Commands/
DCommandObjectPlatform.cpp535 ProcessInstanceInfo proc_info; in DoExecute() local
536 if (platform_sp->GetProcessInfo (pid, proc_info)) in DoExecute()
539proc_info.DumpAsTableRow(ostrm, platform_sp.get(), m_options.show_args, m_options.verbose); in DoExecute()
828 ProcessInstanceInfo proc_info; in DoExecute() local
829 if (platform_sp->GetProcessInfo (pid, proc_info)) in DoExecute()
832 proc_info.Dump (ostrm, platform_sp.get()); in DoExecute()
/external/chromium_org/tools/gn/
Dfunction_exec_script.cc110 base::win::ScopedProcessInformation proc_info(temp_process_info); in ExecProcess() local
133 WaitForSingleObject(proc_info.process_handle(), INFINITE); in ExecProcess()
136 GetExitCodeProcess(proc_info.process_handle(), &dw_exit_code); in ExecProcess()
/external/chromium_org/win8/delegate_execute/
Dcommand_execute_impl.cc416 base::win::ScopedProcessInformation proc_info(temp_process_info); in LaunchDesktopChrome() local
417 AtlTrace("Process id is %d\n", proc_info.process_id()); in LaunchDesktopChrome()
418 AllowSetForegroundWindow(proc_info.process_id()); in LaunchDesktopChrome()
/external/lldb/source/Plugins/Platform/Linux/
DPlatformLinux.h80 GetProcessInfo (lldb::pid_t pid, ProcessInstanceInfo &proc_info);
/external/chromium_org/base/process/
Dlaunch_win.cc343 base::win::ScopedProcessInformation proc_info(temp_process_info); in GetAppOutput() local
362 WaitForSingleObject(proc_info.process_handle(), INFINITE); in GetAppOutput()
/external/lldb/source/Plugins/Platform/gdb-server/
DPlatformRemoteGDBServer.h82 lldb_private::ProcessInstanceInfo &proc_info);
/external/lldb/source/Plugins/Platform/MacOSX/
DPlatformRemoteiOS.h102 lldb_private::ProcessInstanceInfo &proc_info);
DPlatformDarwin.h89 lldb_private::ProcessInstanceInfo &proc_info);
/external/lldb/source/Plugins/Platform/FreeBSD/
DPlatformFreeBSD.h117 lldb_private::ProcessInstanceInfo &proc_info);
/external/libunwind/src/aarch64/
DGinit.c70 put_unwind_info (unw_addr_space_t as, unw_proc_info_t *proc_info, void *arg) in put_unwind_info() argument

12