forked from alphp/pecl-system-win32ps
-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Crispy Computing Machine edited this page Sep 13, 2022
·
1 revision
The win32ps extension is a Windows specific extension that allows PHP retrieve statistics about process and memory utilization.
Windows NT, Windows 2000, Windows XP or Windows Server 2003. Any version of Windows derived from Windows NT should be compatible. Installation
array win32_ps_list_procs ( void )
Retrieves statistics about all running processes.
-
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
peak_pagefile_usage
-
tms
- An array containing information about the following CPU time utilization indicators: created, kernel and user.
array win32_ps_stat_mem ( void )
Retrieves statistics about the global memory utilization.
-
load
- The current memory load in percent of physical memory. -
unit
- This is always 1024, and indicates that the following values are the count of 1024 bytes. -
total_phys
- The amount of total physical memory. -
avail_phys
- The amount of still available physical memory. -
total_pagefile
- The amount of total pageable memory (physical memory + paging file). -
avail_pagefile
- The amount of still available pageable memory (physical memory + paging file). -
total_virtual
- The amount of total virtual memory for a process. -
avail_virtual
- The amount of still available virtual memory for a process.
array win32_ps_stat_proc ( [int pid] )
Retrieves statistics about the process with the process id pid.
-
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
peak_pagefile_usage
-
tms
- An array containing information about the following CPU time utilization indicators: created, kernel and user.