MemoryProfiler class
Memory profiler for tracking memory usage during performance testing
Constructors
Properties
-
allSnapshots
→ List<
MemorySnapshot> -
List of all memory snapshots
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTracking → bool
-
Whether memory tracking is currently active
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
snapshots
→ Stream<
MemorySnapshot> -
Stream of memory snapshots
no setter
Methods
-
clearSnapshots(
) → void - Clears all memory snapshots
-
dispose(
) → void - Disposes the memory profiler
-
exportData(
) → Map< String, dynamic> - Exports memory data to JSON format
-
generateReport(
) → MemoryReport - Generates a comprehensive memory report
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startTracking(
{Duration interval = const Duration(milliseconds: 100)}) → void - Starts memory tracking with specified interval
-
stopTracking(
) → void - Stops memory tracking
-
takeSnapshot(
) → MemorySnapshot - Takes a single memory snapshot
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited