The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Lib::CPUInfo::Processor - CPUInfo Processor object

VERSION

version 0.001

SYNOPSIS

    my $processor = get_current_processor();

    my $id      = $processor->smt_id();
    my $core    = $processor->core();
    my $cluster = $processor->cluster();
    my $package = $processor->package();
    ...

ATTRIBUTES

smt_id

    my $id = $processor->smt_id();

Return an integer.

core

    my $core = $processor->core();

Returns the Lib::CPUInfo::Core package object.

cluster

    my $cluster = $processor->cluster();

Returns the Lib::CPUInfo::Cluster cluster object.

package

    my $package = $processor->package();

Returns the Lib::CPUInfo::Package package object.

linux_id

    my $linux_id = $processor->linux_id();

This is only available on GNU/Linux.

windows_group_id

    my $gid = $processor->windows_group_id();

This is only available on Windows.

windows_processor_id

    my $pid = $processor->windows_processor_id();

This is only available on Windows.

apic_id

    my $apic_id = $processor->apic_id();

This is only available on x86_64.

l1i

    my $l1i = $processor->l1i();

Return the Lib::CPUInfo::Cache l1i cache object.

l1d

    my $l1d = $processor->l1d();

Return the Lib::CPUInfo::Cache l1d cache object.

l2

    my $l2  = $processor->l2();

Return the Lib::CPUInfo::Cache l2 cache object.

l3

    my $l3  = $processor->l3();

Return the Lib::CPUInfo::Cache l3 cache object.

l4

    my $l4  = $processor->l4();

Return the Lib::CPUInfo::Cache l4 cache object.

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.