AdbMemoryInfo class
Android ADB dumpsys meminfo data.
- Mixed-in types
Constructors
- AdbMemoryInfo.new(int realtime, int javaHeap, int nativeHeap, int code, int stack, int graphics, int other, int system, int total)
-
AdbMemoryInfo.fromJson(Map<
String, Object?> 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
AdbMemoryInfo.fromJsonInKB.
factory
-
AdbMemoryInfo.fromJsonInKB(Map<
String, Object?> 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.fromJsonInKB 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> -
override
-
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, where all values are 0.
Constants
- codeKey → const String
- graphicsKey → const String
- javaHeapKey → const String
- nativeHeapKey → const String
- otherKey → const String
- realTimeKey → const String
- stackKey → const String
- systemKey → const String
- totalKey → const String