logMemoryUsage static method
Implementation
static void logMemoryUsage(int bytes) {
final mb = bytes / (1024 * 1024);
if (mb > 200) {
DKLog.w('内存使用过高: ${mb.toStringAsFixed(1)} MB', tag: 'Performance');
} else {
DKLog.d('内存使用: ${mb.toStringAsFixed(1)} MB', tag: 'Performance');
}
}