Haiku::SysInfo - basic system information under Haiku-OS
use Haiku::SysInfo; my $info = Haiku::SysInfo->new; my $cpu_count = $info->cpu_count; ...
Retrieve basic system information about a Haiku-OS system.
Create a new Haiku::SysInfo object
Return the number of CPUs.
Return the cpu type as a number. See the enum cpu_types in OS.h. You may find cpu_brand_string() more useful. eg. this returns 69738 (0x1106a) on my Intel Core i7.
enum cpu_types
Return the CPU revision.
Return the CPU clock speed in Hz.
Return the bus clock speed in Hz. This is zero on my box.
Return the platform type. See enum platform_types in OS.h. This is 2 for x86.
enum platform_types
Total number of memory pages. This is 130800 for my 512MB VM.
Number of used memory pages. This was 21678 while running make install for perl.
The name of the running kernel. This is kernel_x86 for my x86 kernel.
kernel_x86
The kernel build date and time. This is "Jun 18 2011" and "08:26:42" for my system.
The kernel version. This is "1" for my system.
Returns the CPU brand string as returned by CPUID. This is "Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz" for my system.
Tony Cook <tonyc@cpan.org>
Haiku::SysInfo is licensed under the same terms as Perl itself.
To install Haiku::SysInfo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Haiku::SysInfo
CPAN shell
perl -MCPAN -e shell install Haiku::SysInfo
For more information on module installation, please visit the detailed CPAN module installation guide.