diff --git a/OAT.xml b/OAT.xml index a8170630a2ae2aace8b7091885d40c0db4ed11a9..6450661b4d8ad8c68eb3b9c9271591dd2517a626 100644 --- a/OAT.xml +++ b/OAT.xml @@ -61,8 +61,8 @@ - - + + diff --git a/README.md b/README.md index 1a62348d0ec62c6f7204e082f4881cb3ccd770aa..f86ef479147f46a0c29bf9e889800f6078dd6165 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ ## Introduction -The part of Frame Aware Sched belongs to subsystem named *Resource Schedule Subsystem*. +The part of Frame Aware Sched belongs to subsystem named *Resource Schedule Subsystem*. In order to ensure the cpu scheduling supply, it updates the process scheduling groups and adjust the kernel schedule parameters to influence the kernel scheduling behavior according to the information of the application frame drawing and the application life cycle status. @@ -18,23 +18,23 @@ In order to ensure the cpu scheduling supply, it updates the process scheduling ``` //foundation/resourceschedule/frame_aware_sched -├── common # 部件通用工具类 +├── common # common tool class of the component │ └── include -│ ├── frame_info_const.h # 绘帧过程信息 -│ ├── frame_aware_constants.h # 通用参数配置 -│ ├── frame_aware_log_domain.h # 封装hilog,用于日志打印 -│ └── single_instance.h # 封装了单例模式的类模板 +│ ├── frame_info_const.h # frame drawing process information +│ ├── frame_aware_constants.h # general parameter configuration +│ ├── frame_aware_log_domain.h # encapsulates hilog for log printing +│ └── single_instance.h # class template encapslating singleton mode │ ├── interfaces -│ └── innerkits # 对内接口目录 +│ └── innerkits # directory of internal interfaces │ -├── frameworks +├── frameworks │ └── core -│ ├── frame_aware_collector # 应用绘帧信息收集组件 -│ └── frame_aware_policy # 帧感知调度机制组件 -│ -├── profiles # 组件配置文件 -└── test # 自测试用例目录 +│ ├── frame_aware_collector # frame information collector in apps +│ └── frame_aware_policy # components of the frame_aware_sched mechanism +│ +├── profiles # component configuration file +└── test # directory for storing self-test cases. ``` ## Framework diff --git a/README_zh.md b/README_zh.md index 9b0a12228365fa6a8cc7f8ff8e02c259d2f17cdb..7844f9f8d5cc07a656945859cae0aa1eb5bf4a93 100644 --- a/README_zh.md +++ b/README_zh.md @@ -12,23 +12,23 @@ ``` //foundation/resourceschedule/frame_aware_sched -├── common # 部件通用工具类 +├── common # 部件通用工具类 │ └── include -│ ├── frame_info_const.h # 绘帧过程信息 -│ ├── frame_aware_constants.h # 通用参数配置 -│ ├── frame_aware_log_domain.h # 封装hilog,用于日志打印 -│ └── single_instance.h # 封装了单例模式的类模板 +│ ├── frame_info_const.h # 绘帧过程信息 +│ ├── frame_aware_constants.h # 通用参数配置 +│ ├── frame_aware_log_domain.h # 封装hilog,用于日志打印 +│ └── single_instance.h # 封装了单例模式的类模板 │ ├── interfaces -│ └── innerkits # 对内接口目录 +│ └── innerkits # 对内接口目录 │ -├── frameworks +├── frameworks │ └── core -│ ├── frame_aware_collector # 应用绘帧信息收集组件 +│ ├── frame_aware_collector # 应用绘帧信息收集组件 │ └── frame_aware_policy # 帧感知调度机制组件 -│ -├── profiles # 组件配置文件 -└── test # 自测试用例目录 +│ +├── profiles # 组件配置文件 +└── test # 自测试用例目录 ``` @@ -47,11 +47,11 @@ - **帧感知调度机制组件**:主要分为事件处理模块、应用管控模块、调度参数管控模块和RTG(Related-Thread-Group)分组管理模块,四者构成应用线程调度机制。其中: 事件处理模块,主要负责注册接收来自全局资源管控子系统的消息,诸如应用前后台切换、窗口焦点变化等,并分发消息给应用管控模块和RTG分组模块。 - + 应用管控模块,主要负责统一管理事件处理模块的应用消息。 - + RTG分组管理模块,即调用内核接口设置,根据应用状态设置RTG分组实现线程调度管理。 - + 调度参数管控模块,主要负责读取默认调度参数配置。 两个组件中的事件处理模块,均统筹了智能感知调度部件所要对外相应的事件,而调度特性内核接口模块则负责将管控调度命令以帧的频率下发,两个组件相互合作,共同保障系统线程的性能供给。 diff --git a/frameworks/core/frame_aware_collector/include/rme_core_sched.h b/frameworks/core/frame_aware_collector/include/rme_core_sched.h index 3eb356346c316b0dfb763d5d15ebfadfd04c6698..234f2532d80d5ff4bba368251763e36c1839226a 100644 --- a/frameworks/core/frame_aware_collector/include/rme_core_sched.h +++ b/frameworks/core/frame_aware_collector/include/rme_core_sched.h @@ -42,7 +42,7 @@ public: void AnimateStart(); void RenderStart(); void SendCommandsStart(); - + RmeCoreSched(const RmeCoreSched &) = delete; RmeCoreSched &operator=(const RmeCoreSched &) = delete; private: diff --git a/frameworks/core/frame_aware_policy/include/para_config.h b/frameworks/core/frame_aware_policy/include/para_config.h index 5fa0f6c1b5f320a832c5f6023a7137b4d6aa319f..3ece37bbf98bfe80dd6cc0fb35f370666683e5e2 100644 --- a/frameworks/core/frame_aware_policy/include/para_config.h +++ b/frameworks/core/frame_aware_policy/include/para_config.h @@ -39,7 +39,7 @@ public: ParaConfig(ParaConfig&&) = delete; ParaConfig& operator=(const ParaConfig&&) = delete; - static bool IsXmlPrepared(const std::string& filePath); // input parameters need guarantee + static bool IsXmlPrepared(const std::string& filePath); // input parameters need gaurantee static std::map GetGeneralConfig(); static std::map> GetSubEventConfig(); static std::vector GetFpsList(); diff --git a/frameworks/core/frame_aware_policy/src/para_config.cpp b/frameworks/core/frame_aware_policy/src/para_config.cpp index a08687255a1ffd7f83d151d81a0f826fd34ffb4b..94cafb9420fd22c79ceb823ba44bda3f2ddbdac2 100644 --- a/frameworks/core/frame_aware_policy/src/para_config.cpp +++ b/frameworks/core/frame_aware_policy/src/para_config.cpp @@ -124,7 +124,7 @@ void ParaConfig::SplitString(const std::string& context, const std::string& char if (context == "") { return; } - + std::string toSplitStr = context + character; size_t pos = toSplitStr.find(character); diff --git a/interfaces/innerkits/frameintf/rtg_interface.cpp b/interfaces/innerkits/frameintf/rtg_interface.cpp index 21e0a1aff18410f2a6f97b0f5a519a4a5e498639..840be9aacac0985685cbbc94b1f46b2882c44b8b 100644 --- a/interfaces/innerkits/frameintf/rtg_interface.cpp +++ b/interfaces/innerkits/frameintf/rtg_interface.cpp @@ -286,7 +286,7 @@ int SetFrameRateAndPrioType(int rtgId, int rate, int rtgType) int BeginFrameFreq(int grpId, int stateParam) { int ret = 0; - struct proc_state_data state_data; + struct proc_state_data state_data; state_data.grp_id = grpId; state_data.state_param = stateParam; @@ -337,7 +337,7 @@ int EndScene(int grpId) int SetMinUtil(int grpId, int stateParam) { int ret = 0; - struct proc_state_data state_data; + struct proc_state_data state_data; state_data.grp_id = grpId; state_data.state_param = stateParam; diff --git a/profiles/hwrme.xml b/profiles/hwrme.xml index 4398e58e83fabe721ff5cb468d11c575c5d46bdc..cfe8692c980f3a694651a1d0f3470e43ac94ed5d 100644 --- a/profiles/hwrme.xml +++ b/profiles/hwrme.xml @@ -22,7 +22,7 @@ 0 1 2 - 600 - + 600 +