|
NAMESystem::Info::Base - Baseclass for system information.ATTRIBUTEScpucpu_typencpuoshostDESCRIPTIONSystem::Info::Base->new()Return a new instance for $^O$si->prepare_sysinfoThis method should be overridden by platform specific subclasses.The generic information is taken from "POSIX::uname()".
$si->get_osReturns $self->_os$si->get_hostnameReturns $self->_hostname$si->get_cpu_typeReturns $self->_cpu_type$si->get_cpuReturns $self->_cpu$si->get_cpu_countReturns $self->_cpu_count$si->get_core_countReturns $self->get_cpu_count as a numberIf "get_cpu_count" returns "2 [8 cores]", "get_core_count" returns 8 si_uname (@args)This class gathers most of the uname(1) info, make a comparable version. Takes almost the same arguments:a for all (can be omitted) n for nodename s for os name and version m for cpu name c for cpu count p for cpu_type $si->old_dumpJust a backward compatible way to dump the object (for test suite).COPYRIGHT AND LICENSE(c) 2016-2018, Abe Timmerman & H.Merijn Brand, All rights reserved.With contributions from Jarkko Hietaniemi, Campo Weijerman, Alan Burlison, Allen Smith, Alain Barbet, Dominic Dunlop, Rich Rauenzahn, David Cantrell. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See:
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Visit the GSP FreeBSD Man Page Interface. |