မြန်မာ
Appearance
မြန်မာ
Appearance
ဤစာရွက်စာတမ်းသည် WSL Dashboard ၏ architecture design၊ technology selection နှင့် အဓိကလုပ်ဆောင်ချက်များ၏ နောက်ခံ implementation logic ကို နက်ရှိုင်းစွာ လေ့လာထားပြီး developer များနှင့် အဆင့်မြင့်အသုံးပြုသူများအတွက် နည်းပညာ နက်ရှိုင်းသော ရှုထောင့်ကို ပေးစွမ်းရန် ရည်ရွယ်သည်။
WSL Dashboard သည် classical reactive UI-driven + asynchronous backend tasks architecture ကို ကျင့်သုံးပြီး Rust ၏ type system နှင့် ownership model ကို အသုံးပြု၍ memory safety နှင့် high concurrency performance ကို သေချာစေသည်။
Application သည် wsl.exe --list --verbose ကို ခေါ်ယူပြီး ၎င်း၏ output (UTF-16 encoding ကို ကိုင်တွယ်ခြင်း) ကို ခွဲခြမ်းစိတ်ဖြာခြင်းဖြင့် instance အခြေအနေများကို real-time ရယူသည်။
Migration လုပ်ဆောင်ချက်သည် WSL ၏ import/export mechanism ကို အသုံးပြုသော်လည်း အဆင့်မြင့် abstraction နှင့် atomic ပြုလုပ်ထားသည်။
Network လုပ်ဆောင်ချက်သည် ရိုးရိုး netsh interface portproxy call သာမဟုတ်ပါ။
wsl hostname -I ၏ result ကို ခွဲခြမ်းစိတ်ဖြာပြီး host နှင့် instance အကြား virtual network IP များကို အလိုအလျောက် map လုပ်ပေးသည်။usbipd-win ၏ command line interface ကို အသုံးပြုသည်။
Application သည် Windows native APIs (ဥပမာ GetProcessMemoryInfo) ကို ခေါ်ယူ၍ ၎င်း၏ resource usage ကို စောင့်ကြည့်သည်။
| ညွှန်းကိန်း | Target/Actual | Optimization နည်းလမ်း |
|---|---|---|
| Startup Speed | < 500ms | Slint interface ကို pre-compile လုပ်ပြီး runtime parsing ကို လျှော့ချသည်။ |
| Base Memory (Tray) | ~10MB | Background polling frequency ကို အနည်းဆုံးဖြစ်စေပြီး rendering cache များကို လိုအပ်သလို လွှတ်ပေးသည်။ |
| CPU Usage (Idle) | < 0.1% | Windows event-driven model ကို အသုံးပြု၍ empty loop polling ကို ရှောင်ကြဉ်သည်။ |
| Rendering FPS | 60 FPS | Skia GPU acceleration နှင့် sub-pixel anti-aliasing rendering။ |
UI ၏ ချောမွေ့မှုကို သေချာစေရန် အချိန်ကုန်သော operation အားလုံး (VHDX export ကဲ့သို့) ကို asynchronous tasks များမှတစ်ဆင့် ဖြန့်ဝေသည်-
Command message အဖြစ် ထုပ်ပိုးသည်။tokio::sync::mpsc မှတစ်ဆင့် background task handler သို့ ပို့သည်။~\.wsldashboard တွင်သာ သိမ်းဆည်းပြီး cloud synchronization လုံးဝမပြုလုပ်ပါ၊ user privacy ကို ကာကွယ်သည်။