NAME
Lib::CPUInfo::Core - CPUInfo Core object
VERSION
version 0.001
SYNOPSIS
my $index = 0;
my $core = get_core($index);
my $vendor = $core->vendor();
...
ATTRIBUTES
processor_start
my $start = $core->processor_start();
Returns an integer.
processor_count
my $count = $core->processor_count();
core_id
my $id = $core->core_id();
Returns an integer.
cluster
my $cluster = $core->cluster();
Returns the Lib::CPUInfo::Cluster cluster object.
package
my $package = $core->package();
Returns the Lib::CPUInfo::Package package object.
vendor
my $vendor = $core->vendor();
Returns the vendor string for the core.
Available values:
unknownintelamdarmqualcommapplesamsungnvidiamipsibmingenicviacaviumbroadcomapmhuaweihygontexas_instrumentsmarvellrdcdmpmotorolatransmetacyrixrisenscsisnexgenumcdec
uarch
my $uarch = $core->uarch();
Returns the uarch string for the core.
Available values:
unknownp5quarkp6dothanyonahconroepenrynnehalemsandy_bridgeivy_bridgehaswellbroadwellsky_lakekaby_lakepalm_covesunny_covewillametteprescottbonnellsaltwellsilvermontairmontgoldmontgoldmont_plusknights_ferryknights_cornerknights_landingknights_hillknights_millxscalek5k6k7k8k10bulldozerpiledriversteamrollerexcavatorzenzen2geodebobcatjaguarpumaarm7arm9arm11cortex_a5cortex_a7cortex_a8cortex_a9cortex_a12cortex_a15cortex_a17cortex_a32cortex_a35cortex_a53cortex_a55r0cortex_a55cortex_a57cortex_a65cortex_a72cortex_a73cortex_a75cortex_a76cortex_a76aecortex_a77neoverse_n1neoverse_e1scorpionkraitkryofalkorsaphiradenverdenver2carmelexynos_m1exynos_m2exynos_m3exynos_m4exynos_m5mongoose_m1mongoose_m2meerkat_m3meerkat_m4swiftcyclonetyphoontwisterhurricanemonsoonmistralvortextempestlightningthunderthunderxthunderx2pj4brahma_b15brahma_b53xgenedhyana
cpuid
my $cpuid = $core->cpuid();
Returns an integer.
This is only available on x86_64.
midr
my $midr = $core->midr();
Returns an integer.
This is only available on ARM or ARM64.
frequency
my $frequency = $cluster->frequency();
Returns an integer.
AUTHOR
Sawyer X
COPYRIGHT AND LICENSE
This software is copyright (c) 2021 by Sawyer X.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.