mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-22 14:48:16 +02:00
feat: implement NativePlayerScreen using media_kit with optimized playback and decoding configurations
This commit is contained in:
1 parent
5110d70d73
commit
4a884af972
8 files changed
+754
-149
No files matched your search
@@ -36,7 +36,8 @@ class MemoryProfiler {
|
||||
});
|
||||
if (kDebugMode) {
|
||||
print(
|
||||
'⏰ PERIODIC MEMORY MONITORING STARTED (${interval.inSeconds}s interval)');
|
||||
'⏰ PERIODIC MEMORY MONITORING STARTED (${interval.inSeconds}s interval)',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,10 +52,14 @@ class MemoryProfiler {
|
||||
|
||||
/// Analyze memory growth between snapshots
|
||||
static MemoryAnalysis analyzeGrowth(String startLabel, String endLabel) {
|
||||
final start = _snapshots.firstWhere((s) => s.label == startLabel,
|
||||
orElse: () => _snapshots.first);
|
||||
final end = _snapshots.firstWhere((s) => s.label == endLabel,
|
||||
orElse: () => _snapshots.last);
|
||||
final start = _snapshots.firstWhere(
|
||||
(s) => s.label == startLabel,
|
||||
orElse: () => _snapshots.first,
|
||||
);
|
||||
final end = _snapshots.firstWhere(
|
||||
(s) => s.label == endLabel,
|
||||
orElse: () => _snapshots.last,
|
||||
);
|
||||
|
||||
return MemoryAnalysis(
|
||||
startLabel: startLabel,
|
||||
|
||||
Reference in new issue
Block a user