core/commands/mem/mem_models library
Classes
- ClassAlloc
- Per-class allocation record inside a profile snapshot.
- ClassDiff
- A single class diff entry (after − before).
- IsolateHeapInfo
-
One isolate's heap snapshot returned by
getMemoryUsage. - MemAppDied
- App process died during the call.
- MemDiffError
- Generic / unrecognised error.
- MemDiffIsolateMismatch
- Profiles come from different isolates and cannot be meaningfully diffed.
- MemDiffReadError
- One or both profile files could not be read or parsed.
- MemDiffResult
- Result of diffMemProfiles.
- MemDiffSuccess
- Diff computed successfully.
- MemError
- Generic / unrecognised error.
- MemProfile
-
A full allocation profile captured by
getAllocationProfile. - MemProfileAppDied
- App process died during the call.
- MemProfileError
- Generic / unrecognised error.
- MemProfileIsolateNotFound
- Requested isolate ID was not found.
- MemProfileMultiSuccess
- Profiles captured and written to disk for multiple isolates.
- MemProfileResult
- Result of captureMemProfile.
- MemProfileSuccess
- Profile captured and written to disk (single isolate).
- MemResult
- Result of getHeapUsage.
- MemSuccess
- Successfully retrieved per-isolate heap info.
Enums
- MemDiffSort
- Sort key for diff output.
Typedefs
- MemDiffInput = ({String afterPath, String beforePath, MemDiffSort sort, int? topN})
- Input for diffMemProfiles.
- MemInput = ()
- Input for getHeapUsage. No parameters; always targets all isolates.
- MemProfileInput = ({bool allIsolates, String? isolateId, String outputPath})
- Input for captureMemProfile.