downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<Predefined Constantswin32ps Functions>
Last updated: Thu, 26 Jun 2008

Examples

Example #1 Statistics about the current PHP process

<?php
print_r
(win32_ps_stat_proc());
/*
   Array
   (
       [pid] => 936
       [exe] => D:\Daten\Source\php-5.1\Debug_TS\php.exe
       [mem] => Array
           (
               [page_fault_count] => 2062
               [peak_working_set_size] => 8396800
               [working_set_size] => 8396800
               [quota_peak_paged_pool_usage] => 32080
               [quota_paged_pool_usage] => 31876
               [quota_peak_non_paged_pool_usage] => 4240
               [quota_non_paged_pool_usage] => 3888
               [pagefile_usage] => 5865472
               [peak_pagefile_usage] => 5865472
           )

       [tms] => Array
           (
               [created] => 0.093
               [kernel] => 0.015
               [user] => 0.062
           )

   )
*/
?>

Example #2 Statistics about global memory utilization

<?php
print_r
(win32_ps_stat_mem());
/*
   Array
   (
       [load] => 37
       [unit] => 1024
       [total_phys] => 1048096
       [avail_phys] => 649960
       [total_pagefile] => 2521368
       [avail_pagefile] => 2237940
       [total_virtual] => 2097024
       [avail_virtual] => 2057848
   )
*/
?>



add a noteadd a note User Contributed Notes
Examples
There are no user contributed notes for this page.




<Predefined Constantswin32ps Functions>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs