memorySize method
Estimates memory usage of instance.
Implementation
int memorySize(T instance) {
final builder = MemoryCounter();
memorySizeWith(builder, instance);
return builder.memoryUsageInBytes;
}
Estimates memory usage of instance.
int memorySize(T instance) {
final builder = MemoryCounter();
memorySizeWith(builder, instance);
return builder.memoryUsageInBytes;
}