CpuInfo class
Processor specifications and runtime performance metrics.
Constructors
-
CpuInfo({String? name, String? vendor, CpuArchitecture? architecture, int? physicalCores, int? logicalCores, bool? is64Bit, List<
String> features = const [], int? l1CacheBytes, int? l2CacheBytes, int? l3CacheBytes, double? currentFrequencyMHz, double? minFrequencyMHz, double? maxFrequencyMHz, double? usagePercent, List<CpuCoreInfo> cores = const []}) -
const
-
CpuInfo.fromMap(Map<
String, dynamic> map) -
Creates a CpuInfo from a native Map response.
factory
Properties
- architecture → CpuArchitecture?
-
CPU instruction set architecture.
final
-
cores
→ List<
CpuCoreInfo> -
Individual core information and metrics.
final
- currentFrequencyMHz → double?
-
Current overall CPU clock frequency in MHz.
final
-
features
→ List<
String> -
CPU hardware feature flags / extensions (e.g., "neon", "avx2", "sse4_2").
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- is64Bit → bool?
-
Indicates whether the processor is 64-bit capable.
final
- l1CacheBytes → int?
-
Level 1 cache size in bytes.
final
- l2CacheBytes → int?
-
Level 2 cache size in bytes.
final
- l3CacheBytes → int?
-
Level 3 cache size in bytes.
final
- logicalCores → int?
-
Number of logical CPU cores / threads.
final
- maxFrequencyMHz → double?
-
Maximum CPU clock frequency in MHz.
final
- minFrequencyMHz → double?
-
Minimum CPU clock frequency in MHz.
final
- name → String?
-
Processor brand or model name (e.g. "Intel(R) Core(TM) i7-10700K").
final
- physicalCores → int?
-
Number of physical CPU cores.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usagePercent → double?
-
Overall CPU usage percentage (0.0 to 100.0).
final
- vendor → String?
-
CPU vendor (e.g., "GenuineIntel", "AuthenticAMD", "Apple", "Qualcomm").
final
Methods
-
copyWith(
{String? name, String? vendor, CpuArchitecture? architecture, int? physicalCores, int? logicalCores, bool? is64Bit, List< String> ? features, int? l1CacheBytes, int? l2CacheBytes, int? l3CacheBytes, double? currentFrequencyMHz, double? minFrequencyMHz, double? maxFrequencyMHz, double? usagePercent, List<CpuCoreInfo> ? cores}) → CpuInfo -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this model to a Map representation.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited