MemoryCounter class
Counts memory usage.
Example
import 'package:kind/kind.dart';
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- mapper → Mapper
-
Mapper that can used by Kinds to visit their fields.
latefinal
- memoryUsageInBytes → int
-
Memory usage in bytes.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
int n) → void -
Adds
n
bytes to the sum. -
addObject<
E> (E value, {required Kind? kind}) → void -
Adds memory needed by reference to
value
and the object itself (unless it has been visited already). -
contains(
Object value) → bool -
Tells whether
value
has been visited already. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited