AdbMemoryInfo class

Android ADB dumpsys meminfo data.

Constructors

AdbMemoryInfo(int realtime, int javaHeap, int nativeHeap, int code, int stack, int graphics, int other, int system, int total)
AdbMemoryInfo.fromJson(Map<String, dynamic> json)
All data inside of AdbMemoryInfo is in total bytes. When receiving ADB data from the service extension (directly from ADB) then the data is in kilobytes. See the factory constructor fromJsonInKB.
factory
AdbMemoryInfo.fromJsonInKB(Map<String, dynamic> json)
Use when converting data received from the service extension, directly from ADB. All data received from ADB dumpsys meminfo is in kilobytes must adjust to total bytes for AdbMemoryInfo data.
factory

Properties

bootDuration Duration
Duration the device has been up since boot time.
no setter
code int
final
graphics int
final
hashCode int
The hash code for this object.
no setterinherited
javaHeap int
All remaining values are received from ADB in kilobytes but converted to total bytes using the AdbMemoryInfo.fromJsonInKilobytes factory.
final
nativeHeap int
final
other int
final
realtime int
Milliseconds since the device was booted (value zero) including deep sleep.
final
realtimeDT DateTime
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stack int
final
system int
final
total int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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

Static Methods

empty() AdbMemoryInfo
Create an empty AdbMemoryInfo (all values are)

Constants

codeKey → const String
graphicsKey → const String
javaHeapKey → const String
nativeHeapKey → const String
otherKey → const String
realTimeKey → const String
JSON keys of data retrieved from ADB tool.
stackKey → const String
systemKey → const String
totalKey → const String