From 30dd0bae817bd219c3bfb5a6d1ebabc8c043d26d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=9B=E5=9B=BD=E4=BA=AE?= Date: Fri, 29 Aug 2025 11:28:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=91=8A=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 牛国亮 --- .../main/ets/common/entity/LocalConfigEntity.ts | 15 ++++++++++----- .../entry/src/main/ets/common/entity/url.json | 5 +++++ 2 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 smartperf_device/device_ui/entry/src/main/ets/common/entity/url.json diff --git a/smartperf_device/device_ui/entry/src/main/ets/common/entity/LocalConfigEntity.ts b/smartperf_device/device_ui/entry/src/main/ets/common/entity/LocalConfigEntity.ts index 903b19f0f..8611d3eb7 100644 --- a/smartperf_device/device_ui/entry/src/main/ets/common/entity/LocalConfigEntity.ts +++ b/smartperf_device/device_ui/entry/src/main/ets/common/entity/LocalConfigEntity.ts @@ -12,6 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +import urlConfig from './url.json'; + +export { urlConfig }; + export enum TestMode { ONLINE, BRIGHTNESS, @@ -148,16 +153,16 @@ export class QuestionItem { export const questionList = new Array( new QuestionItem( '1.SP工具怎么使用', - '如何使用可以查看以下地址:https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/client/client_ui/README_zh.md' + '有关详细指南, 请访问以下地址: ${urlConfig.usageUrl.configReadme}' ), - new QuestionItem('2.SP工具支持FPS采集吗?', '可以,fps依赖Hidumper能力..'), + new QuestionItem('2.SP工具支持FPS采集吗?', '可以, fps依赖Hidumper能力..'), new QuestionItem('3.SP工具支持RAM采集吗?', 'ram采集目前是 读取进程节点内存信息中的PSS值...'), - new QuestionItem('4.FPS采集不到?', '可能是视频应用,需要联系开发添加对应的图层,做采集适配'), - new QuestionItem('5.SP采集原理?', '目前除fps外,其他采集均是通过cat 系统节点获取'), + new QuestionItem('4.FPS采集不到?', '可能是视频应用, 需要联系开发添加对应的图层,做采集适配'), + new QuestionItem('5.SP采集原理?', '目前除fps外, 其他采集均是通过cat 系统节点获取'), new QuestionItem('6.报告页的值是怎么算的?', '最终以一场测试结果的平均值为准'), new QuestionItem( '7.SP后续规划?', - '集成更多采集能力,如trace采集,counter采集,网络采集等等;优化数据展示方式,报告上传网站端,在线分析性能功耗问题' + '集成更多采集能力, 如trace采集, counter采集, 网络采集等等; 优化数据展示方式, 报告上传网站端, 在线分析性能功耗问题' ) ); diff --git a/smartperf_device/device_ui/entry/src/main/ets/common/entity/url.json b/smartperf_device/device_ui/entry/src/main/ets/common/entity/url.json new file mode 100644 index 000000000..c186aba44 --- /dev/null +++ b/smartperf_device/device_ui/entry/src/main/ets/common/entity/url.json @@ -0,0 +1,5 @@ +{ + "usageUrl": { + "configReadme": "https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/client/client_ui/README_zh.md" + } +} \ No newline at end of file -- Gitee From 17038117c50fef4b79040467e7bb0b56c22d6286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=9B=E5=9B=BD=E4=BA=AE?= Date: Fri, 29 Aug 2025 14:01:26 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=91=8A=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 牛国亮 --- .../src/main/ets/common/entity/LocalConfigEntity.ts | 9 +++------ .../device_ui/entry/src/main/ets/common/entity/url.json | 4 +--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/smartperf_device/device_ui/entry/src/main/ets/common/entity/LocalConfigEntity.ts b/smartperf_device/device_ui/entry/src/main/ets/common/entity/LocalConfigEntity.ts index 8611d3eb7..fd2ac4d9f 100644 --- a/smartperf_device/device_ui/entry/src/main/ets/common/entity/LocalConfigEntity.ts +++ b/smartperf_device/device_ui/entry/src/main/ets/common/entity/LocalConfigEntity.ts @@ -12,10 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -import urlConfig from './url.json'; - -export { urlConfig }; +import urlConfig from './url.json'; export enum TestMode { ONLINE, @@ -149,11 +146,11 @@ export class QuestionItem { this.question = question; } } - +export const configReadme = urlConfig.usageUrl; export const questionList = new Array( new QuestionItem( '1.SP工具怎么使用', - '有关详细指南, 请访问以下地址: ${urlConfig.usageUrl.configReadme}' + '有关详细指南, 请访问以下地址: ' + configReadme ), new QuestionItem('2.SP工具支持FPS采集吗?', '可以, fps依赖Hidumper能力..'), new QuestionItem('3.SP工具支持RAM采集吗?', 'ram采集目前是 读取进程节点内存信息中的PSS值...'), diff --git a/smartperf_device/device_ui/entry/src/main/ets/common/entity/url.json b/smartperf_device/device_ui/entry/src/main/ets/common/entity/url.json index c186aba44..341f2e8b4 100644 --- a/smartperf_device/device_ui/entry/src/main/ets/common/entity/url.json +++ b/smartperf_device/device_ui/entry/src/main/ets/common/entity/url.json @@ -1,5 +1,3 @@ { - "usageUrl": { - "configReadme": "https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/client/client_ui/README_zh.md" - } + "usageUrl": "https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/client/client_ui/README_zh.md" } \ No newline at end of file -- Gitee