From 8e648dcec0f882f783405dfbefdff53682b506af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=9B=E5=9B=BD=E4=BA=AE?= Date: Thu, 28 Aug 2025 17:10:17 +0800 Subject: [PATCH 1/9] =?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 +++++---- 1 file changed, 5 insertions(+), 4 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 903b19f0f..6b459fe3b 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 @@ -145,15 +145,16 @@ export class QuestionItem { } } +const DOCUMENTATION_URL = 'https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/client/client_ui/README_zh.md'; 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' + '如何使用可以查看以下地址:${DOCUMENTATION_URL}' ), - 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后续规划?', -- Gitee From d3dec2e917778e08c1b821706650430fcd0b3404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=9B=E5=9B=BD=E4=BA=AE?= Date: Thu, 28 Aug 2025 17:44:44 +0800 Subject: [PATCH 2/9] =?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: 牛国亮 --- .../entry/src/main/ets/common/entity/LocalConfigEntity.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 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 6b459fe3b..82b404eba 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 @@ -145,11 +145,11 @@ export class QuestionItem { } } -const DOCUMENTATION_URL = 'https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/client/client_ui/README_zh.md'; +export const DOCUMENTATION_URL = 'https://gitee.com/openharmony/developtools_smartperf_host/blob/master/smartperf_device/device_ui/README_zh.md'; export const questionList = new Array( new QuestionItem( '1.SP工具怎么使用', - '如何使用可以查看以下地址:${DOCUMENTATION_URL}' + '如何使用可以查看以下地址: + DOCUMENTATION_URL' ), new QuestionItem('2.SP工具支持FPS采集吗?', '可以, fps依赖Hidumper能力..'), new QuestionItem('3.SP工具支持RAM采集吗?', 'ram采集目前是 读取进程节点内存信息中的PSS值...'), -- Gitee From 4c66ac98df6689646c6093403824019a11d72c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=9B=E5=9B=BD=E4=BA=AE?= Date: Thu, 28 Aug 2025 17:52:09 +0800 Subject: [PATCH 3/9] =?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: 牛国亮 --- .../entry/src/main/ets/common/entity/LocalConfigEntity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 82b404eba..459792041 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 @@ -149,7 +149,7 @@ export const DOCUMENTATION_URL = 'https://gitee.com/openharmony/developtools_sma export const questionList = new Array( new QuestionItem( '1.SP工具怎么使用', - '如何使用可以查看以下地址: + DOCUMENTATION_URL' + '如何使用可以查看以下地址: ' + DOCUMENTATION_URL ), new QuestionItem('2.SP工具支持FPS采集吗?', '可以, fps依赖Hidumper能力..'), new QuestionItem('3.SP工具支持RAM采集吗?', 'ram采集目前是 读取进程节点内存信息中的PSS值...'), -- Gitee From 21148ef86e99b9762e0ddca46bc283634f1247ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=9B=E5=9B=BD=E4=BA=AE?= Date: Thu, 28 Aug 2025 18:10:47 +0800 Subject: [PATCH 4/9] =?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: 牛国亮 --- .../entry/src/main/ets/common/entity/LocalConfigEntity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 459792041..55ef79270 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 @@ -145,7 +145,7 @@ export class QuestionItem { } } -export const DOCUMENTATION_URL = 'https://gitee.com/openharmony/developtools_smartperf_host/blob/master/smartperf_device/device_ui/README_zh.md'; +const DOCUMENTATION_URL = 'https://gitee.com/openharmony/developtools_smartperf_host/blob/master/smartperf_device/device_ui/README_zh.md'; export const questionList = new Array( new QuestionItem( '1.SP工具怎么使用', -- Gitee From 118232bda05e826bea90e7882fa66aade7318fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=9B=E5=9B=BD=E4=BA=AE?= Date: Thu, 28 Aug 2025 19:01:07 +0800 Subject: [PATCH 5/9] =?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: 牛国亮 --- .../entry/src/main/ets/common/entity/LocalConfigEntity.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 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 55ef79270..1e861c72e 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 @@ -145,11 +145,11 @@ export class QuestionItem { } } -const DOCUMENTATION_URL = 'https://gitee.com/openharmony/developtools_smartperf_host/blob/master/smartperf_device/device_ui/README_zh.md'; +const README_ZH_MD_URL = 'https://gitee.com/openharmony/developtools_smartperf_host/blob/master/smartperf_device/device_ui/README_zh.md'; export const questionList = new Array( new QuestionItem( '1.SP工具怎么使用', - '如何使用可以查看以下地址: ' + DOCUMENTATION_URL + '有关详细指南, 请访问文档: ' + README_ZH_MD_URL ), new QuestionItem('2.SP工具支持FPS采集吗?', '可以, fps依赖Hidumper能力..'), new QuestionItem('3.SP工具支持RAM采集吗?', 'ram采集目前是 读取进程节点内存信息中的PSS值...'), -- Gitee From e0786302a70f726136d803cac46b181b1316f2bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=9B=E5=9B=BD=E4=BA=AE?= Date: Thu, 28 Aug 2025 19:21:22 +0800 Subject: [PATCH 6/9] =?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/ConfigReadmeUrl.ts | 17 +++++++++++++++++ .../main/ets/common/entity/LocalConfigEntity.ts | 5 +++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 smartperf_device/device_ui/entry/src/main/ets/common/entity/ConfigReadmeUrl.ts diff --git a/smartperf_device/device_ui/entry/src/main/ets/common/entity/ConfigReadmeUrl.ts b/smartperf_device/device_ui/entry/src/main/ets/common/entity/ConfigReadmeUrl.ts new file mode 100644 index 000000000..e5f665fc6 --- /dev/null +++ b/smartperf_device/device_ui/entry/src/main/ets/common/entity/ConfigReadmeUrl.ts @@ -0,0 +1,17 @@ +/* + * Copyright (C) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export const CONFIG = { + SP_TOOL_HELP_URL: 'https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/client/client_ui/README_zh.md', +}; \ No newline at end of file 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 1e861c72e..adea97286 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,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +import { CONFIG } from './ConfigReadmeUrl'; + export enum TestMode { ONLINE, BRIGHTNESS, @@ -145,11 +147,10 @@ export class QuestionItem { } } -const README_ZH_MD_URL = 'https://gitee.com/openharmony/developtools_smartperf_host/blob/master/smartperf_device/device_ui/README_zh.md'; export const questionList = new Array( new QuestionItem( '1.SP工具怎么使用', - '有关详细指南, 请访问文档: ' + README_ZH_MD_URL + '有关详细指南, 请访问文档: ${CONFIG.SP_TOOL_HELP_URL}' ), new QuestionItem('2.SP工具支持FPS采集吗?', '可以, fps依赖Hidumper能力..'), new QuestionItem('3.SP工具支持RAM采集吗?', 'ram采集目前是 读取进程节点内存信息中的PSS值...'), -- Gitee From 0673d9e02367eb2f1320c5507c9351d7fc288784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=9B=E5=9B=BD=E4=BA=AE?= Date: Thu, 28 Aug 2025 19:26:28 +0800 Subject: [PATCH 7/9] =?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: 牛国亮 --- .../entry/src/main/ets/common/entity/ConfigReadmeUrl.ts | 4 ++-- .../entry/src/main/ets/common/entity/LocalConfigEntity.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/smartperf_device/device_ui/entry/src/main/ets/common/entity/ConfigReadmeUrl.ts b/smartperf_device/device_ui/entry/src/main/ets/common/entity/ConfigReadmeUrl.ts index e5f665fc6..b30a6a55e 100644 --- a/smartperf_device/device_ui/entry/src/main/ets/common/entity/ConfigReadmeUrl.ts +++ b/smartperf_device/device_ui/entry/src/main/ets/common/entity/ConfigReadmeUrl.ts @@ -12,6 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export const CONFIG = { - SP_TOOL_HELP_URL: 'https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/client/client_ui/README_zh.md', +export const configReadme = { + SP_README_HELP_URL: 'https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/client/client_ui/README_zh.md', }; \ No newline at end of file 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 adea97286..336bf002e 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 @@ -150,7 +150,7 @@ export class QuestionItem { export const questionList = new Array( new QuestionItem( '1.SP工具怎么使用', - '有关详细指南, 请访问文档: ${CONFIG.SP_TOOL_HELP_URL}' + '有关详细指南, 请访问文档: ${configReadme.SP_README_HELP_URL}' ), new QuestionItem('2.SP工具支持FPS采集吗?', '可以, fps依赖Hidumper能力..'), new QuestionItem('3.SP工具支持RAM采集吗?', 'ram采集目前是 读取进程节点内存信息中的PSS值...'), -- Gitee From b15be4acd16aa53dafb4ded54f4a8928aadde256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=9B=E5=9B=BD=E4=BA=AE?= Date: Thu, 28 Aug 2025 20:48:00 +0800 Subject: [PATCH 8/9] =?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/ConfigReadmeUrl.ts | 17 ----------------- .../main/ets/common/entity/LocalConfigEntity.ts | 6 +++--- 2 files changed, 3 insertions(+), 20 deletions(-) delete mode 100644 smartperf_device/device_ui/entry/src/main/ets/common/entity/ConfigReadmeUrl.ts diff --git a/smartperf_device/device_ui/entry/src/main/ets/common/entity/ConfigReadmeUrl.ts b/smartperf_device/device_ui/entry/src/main/ets/common/entity/ConfigReadmeUrl.ts deleted file mode 100644 index b30a6a55e..000000000 --- a/smartperf_device/device_ui/entry/src/main/ets/common/entity/ConfigReadmeUrl.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (C) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export const configReadme = { - SP_README_HELP_URL: 'https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/client/client_ui/README_zh.md', -}; \ No newline at end of file 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 336bf002e..4b8cdf13e 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,8 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { CONFIG } from './ConfigReadmeUrl'; - export enum TestMode { ONLINE, BRIGHTNESS, @@ -147,10 +145,12 @@ export class QuestionItem { } } +const configReadme = 'developtools_smartperf_host/smartperf_device/device_ui/README_zh.md'; + export const questionList = new Array( new QuestionItem( '1.SP工具怎么使用', - '有关详细指南, 请访问文档: ${configReadme.SP_README_HELP_URL}' + '有关详细指南, 访问路径OpenHarmony仓: ${configReadme}' ), new QuestionItem('2.SP工具支持FPS采集吗?', '可以, fps依赖Hidumper能力..'), new QuestionItem('3.SP工具支持RAM采集吗?', 'ram采集目前是 读取进程节点内存信息中的PSS值...'), -- Gitee From 32b9d07a1afa0cde180cf37f55f2494c8c2b4299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=9B=E5=9B=BD=E4=BA=AE?= Date: Thu, 28 Aug 2025 21:40:02 +0800 Subject: [PATCH 9/9] =?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: 牛国亮 --- .../entry/src/main/ets/common/entity/LocalConfigEntity.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 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 4b8cdf13e..09cd69a42 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 @@ -145,12 +145,12 @@ export class QuestionItem { } } -const configReadme = 'developtools_smartperf_host/smartperf_device/device_ui/README_zh.md'; +export const configReadme = 'developtools_smartperf_host/smartperf_device/device_ui/README_zh.md'; export const questionList = new Array( new QuestionItem( '1.SP工具怎么使用', - '有关详细指南, 访问路径OpenHarmony仓: ${configReadme}' + '有关详细指南, 访问OpenHarmony仓路径: ' + configReadme ), new QuestionItem('2.SP工具支持FPS采集吗?', '可以, fps依赖Hidumper能力..'), new QuestionItem('3.SP工具支持RAM采集吗?', 'ram采集目前是 读取进程节点内存信息中的PSS值...'), -- Gitee