NAME
Haiku::SysInfo - basic system information under Haiku-OS
SYNOPSIS
use Haiku::SysInfo;
my $info = Haiku::SysInfo->new;
my $cpu_count = $info->cpu_count;
...
DESCRIPTION
Retrieve basic system information about a Haiku-OS system.
METHODS
- new()
-
Create a new Haiku::SysInfo object
- cpu_count()
-
Return the number of CPUs.
- cpu_type()
-
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. - cpu_revision
-
Return the CPU revision.
- cpu_clock_speed
-
Return the CPU clock speed in Hz.
- bus_clock_speed
-
Return the bus clock speed in Hz. This is zero on my box.
- platform_type
-
Return the platform type. See
enum platform_types
in OS.h. This is 2 for x86. - max_pages
-
Total number of memory pages. This is 130800 for my 512MB VM.
- used_pages
-
Number of used memory pages. This was 21678 while running make install for perl.
- kernel_name
-
The name of the running kernel. This is
kernel_x86
for my x86 kernel. - kernel_build_date
- kernel_build_time
-
The kernel build date and time. This is "Jun 18 2011" and "08:26:42" for my system.
- kernel_version
-
The kernel version. This is "1" for my system.
- cpu_brand_string
-
Returns the CPU brand string as returned by CPUID. This is "Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz" for my system.
AUTHOR
Tony Cook <tonyc@cpan.org>
LICENSE
Haiku::SysInfo is licensed under the same terms as Perl itself.