SysStats class Null safety
CPU 和内存统计信息
Constructors
- SysStats({required int cpuCores, required double cpuAppUsage, required double cpuTotalUsage, required double memoryUsage, required int fullMemory, required int totalMemoryUsage, required int freeMemory, required double memoryRatio, required double totalMemoryRatio})
- SysStats.fromMap(Map map)
-
factory
Properties
- cpuAppUsage ↔ double
-
当前应用的 CPU 使用率,取值范围为
[0, 1]read / write - cpuCores ↔ int
-
当前系统 CPU 核数
read / write
- cpuTotalUsage ↔ double
-
当前系统的 CPU 使用率,取值范围为
[0, 1]read / write - freeMemory ↔ int
-
系统当前空闲可分配内存 (MB)
read / write
- fullMemory ↔ int
-
设备的内存大小(MB)
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- memoryRatio ↔ double
-
当前应用的内存使用率 (%)
read / write
- memoryUsage ↔ double
-
当前应用的内存使用量(MB)
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- totalMemoryRatio ↔ double
-
系统内存使用率 (%)
read / write
- totalMemoryUsage ↔ int
-
系统已使用内存(MB)
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited