| /commonlibrary/memory_utils/libmeminfo/test/unittest/ |
| D | meminfo_test.cpp | 53 int pid = 1; variable 55 size = GetRssByPid(pid); 62 int pid = -1; variable 64 size = GetRssByPid(pid); 70 int pid = 1; variable 72 size = GetPssByPid(pid); 80 int pid = -1; variable 82 size = GetPssByPid(pid); 88 int pid = 1; variable 90 size = GetSwapPssByPid(pid); [all …]
|
| /commonlibrary/rust/ylong_runtime/ylong_runtime/tests/ |
| D | async_pool.rs | 47 // Gets the pid of all current threads (including the main thread) 59 // Get the name of the thread based on the thread pid 60 unsafe fn name_of_pid(pid: &str) -> Option<String> { in name_of_pid() 65 pid in name_of_pid() 79 fn get_other_thread_affinity(pid: i32) -> Vec<usize> { in get_other_thread_affinity() 84 sched_getaffinity(pid, size_of::<cpu_set_t>(), &mut set); in get_other_thread_affinity() 138 let pid = dir.to_str().unwrap().parse::<i32>().unwrap(); in sdv_async_pool_001() localVariable 139 if let Some(name) = name_of_pid(pid.to_string().as_str()) { in sdv_async_pool_001() 142 assert_eq!(get_other_thread_affinity(pid).len(), 1); in sdv_async_pool_001() 198 let pid = dir.to_str().unwrap().parse::<i32>().unwrap(); in sdv_async_pool_002() localVariable [all …]
|
| /commonlibrary/memory_utils/libmeminfo/src/ |
| D | meminfo.cpp | 39 uint64_t GetRssByPid(const int pid) in GetRssByPid() argument 46 std::string statmPath = "/proc/" + std::to_string(pid) + "/statm"; in GetRssByPid() 61 uint64_t GetPssByPid(const int pid) in GetPssByPid() argument 64 std::string filename = "/proc/" + std::to_string(pid) + "/smaps_rollup"; in GetPssByPid() 89 uint64_t GetSwapPssByPid(const int pid) in GetSwapPssByPid() argument 92 std::string filename = "/proc/" + std::to_string(pid) + "/smaps_rollup"; in GetSwapPssByPid() 117 bool GetGraphicsMemory(const int pid, uint64_t &gl, uint64_t &graph) in GetGraphicsMemory() argument 132 if (memtrack->GetDevMem(pid, memTrackerType.first, records) != HDF_SUCCESS) { in GetGraphicsMemory()
|
| /commonlibrary/ets_utils/js_sys_module/process/ |
| D | js_childprocess.cpp | 75 pid_t pid = fork(); in Spawn() local 76 if (!pid) { in Spawn() 85 } else if (pid > 0) { in Spawn() 90 optionsInfo_->pid = pid; in Spawn() 123 waitpid(optionsInfo_->pid, &status, 0); in Wait() 210 NAPI_CALL(env, napi_create_int32(env, optionsInfo_->pid, &result)); in Getpid() 246 stdOutInfo_->pid = optionsInfo_->pid; in CreateWorker() 261 stdErrInfo_->pid = optionsInfo_->pid; in CreateWorker() 282 if (!kill(stdOutInfo->pid, SIGKILL)) { in ReadStdOut() 317 if (!kill(stdErrInfo->pid, SIGKILL)) { in ReadStdErr() [all …]
|
| D | js_process.cpp | 145 int32_t pid = 0; in Kill() local 147 napi_get_value_int32(env, proid, &pid); in Kill() 151 if (sig > 64 && (!pid || pid == -1 || pid == ownPid || pid == -ownPid)) { in Kill() 156 int err = uv_kill(pid, sig); in Kill() 566 int32_t pid = 0; in Kill() local 568 napi_get_value_int32(env, proid, &pid); in Kill() 572 if (sig > 64 && (!pid || pid == -1 || pid == ownPid || pid == -ownPid)) { in Kill() 577 int err = uv_kill(pid, sig); in Kill()
|
| D | js_childprocess.h | 33 int pid {}; 42 pid_t pid {}; 95 * Get the specific pid value.
|
| D | js_process.h | 77 * Get the pid of the current process. 84 * Get the pid of the parent process of the current process.
|
| D | native_module_process.cpp | 245 DECLARE_NAPI_GETTER("pid", Getpid), in RunCommand() 540 return ThrowError(env, "Parameter error. The type of signal or pid must be number."); in KillSigOfProcess() 686 DECLARE_NAPI_GETTER("pid", GetPid), in Init()
|
| /commonlibrary/memory_utils/libmeminfo/include/ |
| D | meminfo.h | 25 uint64_t GetRssByPid(const int pid); 28 uint64_t GetPssByPid(const int pid); 31 uint64_t GetSwapPssByPid(const int pid); 34 bool GetGraphicsMemory(const int pid, uint64_t &gl, uint64_t &graph);
|
| /commonlibrary/rust/ylong_runtime/ylong_runtime/examples/ |
| D | ylong_runtime_memory.rs | 34 let pid = process::id(); in get_memory_info() localVariable 35 println!("pid {pid:}"); in get_memory_info() 36 let cmd = format!("/proc/{pid:}/status"); in get_memory_info()
|
| /commonlibrary/rust/ylong_runtime/ylong_runtime/benches/bin/ |
| D | ylong_tokio_mem.rs | 21 let pid = process::id(); in get_memory_info() localVariable 22 println!("pid {pid}"); in get_memory_info() 23 let cmd = format!("{pid}"); in get_memory_info()
|
| D | ylong_tokio_spawn.rs | 24 let pid = process::id(); in get_memory_info() localVariable 25 println!("pid {pid}"); in get_memory_info() 26 let cmd = format!("{pid}"); in get_memory_info()
|
| /commonlibrary/ets_utils/js_sys_module/test/ |
| D | test_process.cpp | 113 napi_value pid = childprocess->Getpid(env); variable 117 napi_value result = process.Kill(env, pid, signal); 139 napi_value pid = childprocess->Getpid(env); variable 143 napi_value result = process.Kill(env, pid, signal); 273 * @tc.desc: Test process pid. 281 int32_t pid = 0; variable 282 napi_get_value_int32(env, napiPid, &pid); 284 if (pid > 0) { 337 * @tc.desc: test get the specific pid value. 352 int32_t pid = 0; variable [all …]
|
| /commonlibrary/ets_utils/ |
| D | hisysevent.yaml | 18 PID: {type: INT32, desc: pid}
|
| D | README.en.md | 1485 ├── Pid # PID attribute 1514 ├── pid # PID attribute 1553 | const pid :number | Obtains the process ID (PID) of this process.| 1557 | Kill(pid:number, signal:number) :boolean | Sends a signal to the specified process to terminate i… 1582 | readonly pid: number | Indicates the PID of the child process.| 1640 6. pid() 1642 pid(){ 1643 var result = Process.pid; 1781 24. pid 1783 pid [all …]
|
| D | README.md | 4554 ├── Pid # Pid属性 4583 ├── pid # pid属性 4622 | const pid :number | 返回进程的PID。 | 4626 | Kill(pid:number, signal:number) :boolean | 将信号发送到识别的进程PID,true表示发送成功。 | 4651 | readonly pid: number | 表示子进程ID。 | 4709 6.pid() 4711 pid(){ 4712 var result = Process.pid; 4850 24.pid 4852 pid [all …]
|
| /commonlibrary/ets_utils/js_concurrent_module/taskpool/ |
| D | dfx_hisys_event.cpp | 27 "PID", hisyseventParams->pid, in WriteFfrtAndUv()
|
| D | dfx_hisys_event.h | 33 int32_t pid; member
|
| D | task_manager.cpp | 329 // read /proc/[pid]/task/[tid]/stat to get the number of idle threads. 333 pid_t pid = getpid(); in ReadThreadInfo() local 335 int ret = snprintf_s(path, sizeof(path), sizeof(path) - 1, "/proc/%d/task/%d/stat", pid, tid); in ReadThreadInfo() 1610 hisyseventParams->pid = getpid(); in WriteHisysForFfrtAndUv()
|
| /commonlibrary/c_utils/base/src/ |
| D | refbase.cpp | 91 // it manages), the amount of strong/weak/refcout and the PID&TID. 96 …RefTracker(RefTracker* exTracker, const void* id, int strong, int weak, int ref, int pid, int tid); 107 int PID; member in OHOS::RefTracker 112 …:RefTracker(RefTracker* exTracker, const void* id, int strong, int weak, int ref, int pid, int tid) in RefTracker() argument 113 …: ptrID (id), strongRefCnt (strong), weakRefCnt (weak), refCnt (ref), PID (pid), TID (tid), exTrac… in RefTracker() 119 …UTILS_LOGI("strong: %{public}d weak: %{public}d, refcnt: %{public}d PID: %{public}d TID: %{public}… in PrintTrace() 120 strongRefCnt, weakRefCnt, refCnt, PID, TID); in PrintTrace()
|
| /commonlibrary/memory_utils/libdmabufheap/test/unittest/libdmabufheap/ |
| D | dmabuf_alloc_test.cpp | 132 pid_t pid = fork(); variable 133 ASSERT_GE(pid, 0); 135 if (pid == 0) { 154 waitpid(pid, nullptr, 0);
|
| /commonlibrary/c_utils/docs/zh-cn/ |
| D | c-utils-guide-refbase.md | 282 (sptr pointer) call (RefBase pointer). strong: x weak: x refcnnt: x PID: xxx TID: xxx 284 (sptr pointer) call (RefBase pointer). strong: x weak: x refcnnt: x PID: xxx TID: xxx
|
| /commonlibrary/ets_utils/platform/ios/ |
| D | process_helper.cpp | 482 int pid = getpid(); in GetProcessStartRealtime() local 485 int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PID, pid}; in GetProcessStartRealtime()
|