Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Design for eXcellence (DFX) is a general term for non-functional design of a product. X indicates a feature of the product or a phase in the product lifecycle. The HarmonyOS DFX subsystem provides a series of DFX functions to help you create high-quality apps and games. These functions include:
These DFX functions cover multiple aspects such as fault management, problem reporting, and problem analysis. The following table lists specific capabilities.
| Scenario | Sub-scenario | Component or Tool |
|---|---|---|
| Fault management | Stability detection | |
| Performance detection | ||
| Power consumption detection | ||
| Error management | ||
| Fault restoration | ||
| Problem reporting | Event subscription | |
| Problem analysis | Logs | |
| Tracing | ||
| Debugging information | ||
| Command line tools | ||
| UI-based tools | SmartPerf (performance and power consumption tuning tool), DevEco Studio (integrated development environment for HarmonyOS apps) |
During development and O&M, if encountering issues related to stability, performance, and power consumption, you can refer to the following scenario-based knowledge map for analysis and resolution.
| Scenario | Level-2 Scenario | Development-state Detection | Runtime-state Detection | Analysis Method | Case |
|---|---|---|---|---|---|
| Stability | Address sanitizer | ||||
| Resource leak | |||||
| App freeze | - | ||||
| Abnormal app exit | |||||
| Performance | Slow app startup | - | - | ||
| App freezing and frame loss | |||||
| Power consumption | Abnormal app power consumption |
In addition to the development-state detection methods listed in the preceding table, you can also use DevEco Testing to test the app quality.
The following table lists some common terms related to app quality. For more terms, see Performance Analysis Kit Terminology.
| Scenario | Common Term |
|---|---|
| General | |
| Stability | CPP crash, JS crash, AppFreeze, ASan, HWASan, GWP-ASan, TSan, UBSan |
| Performance | |
| Power consumption | Foreground task, background task, frame rate, Low Temperature Polycrystalline Oxide (LTPO), redundant drawing, invisible animation, Hardware Composer (HWC) |
| Memory | Virtual Set Size (VSS), Proportional Set Size (PSS), Resident Set Size (RSS), dirty page, clean page, anonymous page, file-backed page |