memory_usage library
Classes
- AutoSnapshottingConfig
-
Configures auto-snapshotting, based on the value of
ProcessInfo.currentRss
(dart:io). - MemoryUsageEvent
- A record of a memory usage event.
- SnapshotEvent
- A record of a taken snapshot.
- UsageEventsConfig
- Configures memory usage tracking.
- UsageTrackingConfig
- Configures memory usage tracking.
Properties
- autoSnapshotter ↔ AutoSnapshotter?
-
getter/setter pair
- timer ↔ Timer?
-
getter/setter pair
- usageEventCreator ↔ UsageEventCreator?
-
getter/setter pair
Functions
-
stopMemoryUsageTracking(
) → void - Stops memory usage tracking if it is started by trackMemoryUsage.
-
trackMemoryUsage(
UsageTrackingConfig config) → void - Enables memory usage tracking, based on the value of ProcessInfo.currentRss (dart:io).
Typedefs
- SnapshotCallback = void Function(SnapshotEvent event)
- A callback that is called when a snapshot is taken.
- UsageCallback = void Function(MemoryUsageEvent event)
- A callback that is called for memory usage event.