Dynamic Web Pages: deutschsprachiger PHP Knotenpunkt seit 1999

Dynamic Web Pages : deutschsprachiges PHP-Handbuch : win32ps _

 
  PHP Architect  
  _  
 
<wddx_unserialize win32_ps_list_procs>
Letzte Aktualisierung: Mon, 21 May 2012
 

CLXIX. win32ps Functions

Einführung

The win32ps extension is a Windows specific extension that allows PHP retrieve statistics about process and memory utilization.

Anforderungen

Windows NT, Windows 2000, Windows XP or Windows Server 2003. Any version of Windows derived from Windows NT should be compatible.

Installation

Installing from PECL

  1. You can download php_win32ps.dll from pecl4win.php.net.

  2. Copy the php_win32ps.dll into your extension_dir.

  3. Load the extension from your php.ini
    extension=php_win32ps.dll

Beispiele

Beispiel 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
           )

   )
*/
?>

Beispiel 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
   )
*/
?>

Inhaltsverzeichnis
win32_ps_list_procs -- List running processes
win32_ps_stat_mem -- Stat memory utilization
win32_ps_stat_proc -- Stat process


<wddx_unserialize win32_ps_list_procs>
Letzte Aktualisierung: Mon, 21 May 2012
 


powered by Hetzner
top Alle Rechte vorbehalten. © Dynamic Web Pages 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 top

Werbung an/aus Werbung aus Werbung an