- PHP 手册
- 函数参考
- Windows 专用扩展
- win32ps
- win32ps 函数
win32_ps_stat_proc
(PECL win32ps >= 1.0.1)
win32_ps_stat_proc — Stat process
说明
win32_ps_stat_proc ([ int$pid
= 0
] ) : array
Retrieves statistics about the process with the process id pid
.
参数
-
pid
-
The process id of the process to stat. If omitted, the id of the current process.
返回值
Returns FALSE
on failure, or an array consisting of the
following information on success:
-
pid
-
The process id.
-
exe
-
The path to the executable image.
-
mem
-
An array containing information about the following memory utilization indicators:
page_fault_count
,peak_working_set_size
,working_set_size
,quota_peak_paged_pool_usage
,quota_paged_pool_usage
,quota_peak_non_paged_pool_usage
,quota_non_paged_pool_usage
,pagefile_usage
andpeak_pagefile_usage
. -
tms
-
An array containing information about the following CPU time utilization indicators:
created
,kernel
anduser
.
参见
- win32_ps_list_procs() - List running processes
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/function.win32-ps-stat-proc.php