Win32::Utilization - Perl extension for Win32 system utilization
use Win32::Utilization; my $cpu = CPU_per(); my $mem = mem_per(); my $c = drive_per('c');
There lacks a module to detect win32 system utilization in CPAN. I simply wrap some Windows API for easy using under perl.Note: it automatically export 3 funcations when using it, and all three return a 0-100 number to show utilization respectly.
mem_per for mem CPU_per for CPU drive_per for hard disks
xiaoyafeng: please mail to xyf@cpan.org for any issues.
Copyright (C) 2012 by xiaoyafeng
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Win32::Utilization, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::Utilization
CPAN shell
perl -MCPAN -e shell install Win32::Utilization
For more information on module installation, please visit the detailed CPAN module installation guide.