Cpu class Null safety

Class containing CPU core data

Constructors

Cpu()
Empty constructor, creates a Cpu object with default values in it
Cpu.fromData(int processor, String vendor_id, int cpu_family, int model, String model_name, int stepping, int microcode, double cpu_mhz, String cache_size, int physical_id, int siblings, int core_id, int cpu_cores, int apicid, int initial_apicid, bool fpu, bool fpu_exception, int cpuid_level, bool wp, List<String> flags, double bogomips, int clflush_size, int cache_alignment, Tuple2<String, String> address_sizes)
Constructor for creating a Cpu with data in it

Properties

address_sizes ↔ Tuple2<String, String>
read / write
apicid int
CPU apicid
read / write
bogomips double
CPU bogomips
read / write
cache_alignment int
CPU cache alignment
read / write
cache_size String
CPU cache size
read / write
clflush_size int
CPU clflush's size
read / write
core_id int
CPU core identifier
read / write
cpu_cores int
Total amount of cores
read / write
cpu_family int
CPU family
read / write
cpu_mhz double
CPU MHz
read / write
cpuid_level int
Cpuid level
read / write
flags List<String>
CPU's flags
read / write
fpu bool
If cpu has an FPU (Floating point unit)
read / write
fpu_exception bool
If FPU has an exception
read / write
hashCode int
The hash code for this object.
read-onlyinherited
initial_apicid int
CPU initial apicid
read / write
microcode int
CPU microcode
read / write
model int
CPU model
read / write
model_name String
CPU model name
read / write
physical_id int
CPU physical id
read / write
processor int
Core number
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
siblings int
CPU siblings
read / write
stepping int
CPU stepping
read / write
vendor_id String
CPU vendor identifier
read / write
wp bool
read / write

Methods

getCpuUsagePercentage() Stream<double>
Get a Stream for handling the core usage in percentage as a double
load() List<int>
Get current core load
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited