MemoryOptimizer class

Memory optimization utilities.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

canLoadModel(String modelName, int availableMemoryMB) bool
Check if device can load a model.
estimateModelMemory(String modelName) int
Estimate memory required for model.
getOptimizationHints(MemoryInfo info) List<String>
Get memory optimization hints.
optimalChunkSize(int availableMemoryMB) int
Calculate optimal chunk size for audio processing.
recommendModel(int availableMemoryMB) String
Get recommended model for available memory.