diff --git a/OAT.xml b/OAT.xml
index 9705a1cbe38d1ac277d21d688189b738b49a37d6..b59f6922ee6b9b623fae87de18e6b94ee05897cb 100644
--- a/OAT.xml
+++ b/OAT.xml
@@ -103,6 +103,11 @@ Note:If the text contains special characters, please escape them according to th
+
+
+
+
+
@@ -145,6 +150,7 @@ Note:If the text contains special characters, please escape them according to th
+
@@ -372,6 +378,10 @@ Note:If the text contains special characters, please escape them according to th
+
+
+
+
@@ -416,6 +426,13 @@ Note:If the text contains special characters, please escape them according to th
+
+
+
+
+
+
+
@@ -475,6 +492,11 @@ Note:If the text contains special characters, please escape them according to th
+
+
+
+
+
@@ -951,6 +973,9 @@ Note:If the text contains special characters, please escape them according to th
+
+
+
@@ -1195,6 +1220,7 @@ Note:If the text contains special characters, please escape them according to th
+
@@ -1262,6 +1288,31 @@ Note:If the text contains special characters, please escape them according to th
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1273,6 +1324,30 @@ Note:If the text contains special characters, please escape them according to th
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1325,25 +1400,13 @@ Note:If the text contains special characters, please escape them according to th
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
+
@@ -1472,6 +1535,118 @@ Note:If the text contains special characters, please escape them according to th
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/.gitignore b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..d2ff20141ceed86d87c0ea5d99481973005bab2b
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/.gitignore
@@ -0,0 +1,12 @@
+/node_modules
+/oh_modules
+/local.properties
+/.idea
+**/build
+/.hvigor
+.cxx
+/.clangd
+/.clang-format
+/.clang-tidy
+**/.test
+/.appanalyzer
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/AppScope/app.json5 b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/AppScope/app.json5
new file mode 100644
index 0000000000000000000000000000000000000000..ff27edb65d3be77519445156ee8a9385b99a9704
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/AppScope/app.json5
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2025 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.
+ */
+
+{
+ "app": {
+ "bundleName": "com.samples.freezeeventarkts",
+ "vendor": "example",
+ "versionCode": 1000000,
+ "versionName": "1.0.0",
+ "icon": "$media:app_icon",
+ "label": "$string:app_name"
+ }
+}
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/AppScope/resources/base/element/string.json b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/AppScope/resources/base/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..ea6bad23fca16a929b860943d772df0fffddf8ef
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/AppScope/resources/base/element/string.json
@@ -0,0 +1,8 @@
+{
+ "string": [
+ {
+ "name": "app_name",
+ "value": "FreezeEvent_ArkTS"
+ }
+ ]
+}
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/AppScope/resources/base/media/app_icon.png b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/AppScope/resources/base/media/app_icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..a39445dc87828b76fed6d2ec470dd455c45319e3
Binary files /dev/null and b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/AppScope/resources/base/media/app_icon.png differ
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/README_zh.md b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/README_zh.md
new file mode 100644
index 0000000000000000000000000000000000000000..e9fa8863df660a54f65477d6c3ec639fe7f42c28
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/README_zh.md
@@ -0,0 +1,86 @@
+# 订阅卡死事件(ArkTS)
+
+### 介绍
+
+本示例主要展示了使用订阅卡死事件(ArkTS)相关的功能,HiAppEvent提供了事件订阅接口,用于本地获取应用事件。
+
+### 效果预览
+
+| 主页 |
+| :----------------------------------------------------------: |
+|
|
+
+使用说明
+
+1.在应用侧主界面,点击"appFreeze ArkTS"按钮触发卡死事件,应用退出后重启应用;
+
+2.在DevEco Studio侧下方导航栏,切换到"Log"窗口,日志过滤选择"No filters",搜索内容设置为"testTag"。此时窗口仅显示符合条件的日志,打印日志结果为:
+
+```
+HiAppEvent success to set event param
+HiAppEvent onReceive: domain=OS
+HiAppEvent eventName=APP_FREEZE
+HiAppEvent eventInfo.domain=OS
+HiAppEvent eventInfo.name=APP_FREEZE //卡死事件
+HiAppEvent eventInfo.eventType=1
+HiAppEvent eventInfo.params.time=1609761072234
+HiAppEvent eventInfo.params.foreground=false
+HiAppEvent eventInfo.params.bundle_version=1.0.0
+HiAppEvent eventInfo.params.bundle_name=com.example.arkts
+HiAppEvent eventInfo.params.process_name=com.example.arkts
+HiAppEvent eventInfo.params.pid=29942
+HiAppEvent eventInfo.params.uid=20010044
+HiAppEvent eventInfo.params.uuid=e91871347caf1864fe078195b87c9537553ca8c3ab554591e8ff4f85a5f69cca
+HiAppEvent eventInfo.params.exception={"message":"App main thread is not response!","name":"THREAD_BLOCK_6S"}
+HiAppEvent eventInfo.params.hilog.size=100
+HiAppEvent eventInfo.params.event_handler.size=3
+HiAppEvent eventInfo.params.event_handler_size_3s=2
+HiAppEvent eventInfo.params.event_handler_size_6s=3
+HiAppEvent eventInfo.params.peer_binder.size=0
+HiAppEvent eventInfo.params.threads.size=0
+HiAppEvent eventInfo.params.memory={"pss":0,"rss":0,"sys_avail_mem":1045060,"sys_free_mem":565416,"sys_total_mem":1936004,"vss":0}
+HiAppEvent eventInfo.params.external_log=["/data/storage/el2/log/hiappevent/APP_FREEZE_1609761086387_29942.log"]
+HiAppEvent eventInfo.params.log_over_limit=false
+HiAppEvent eventInfo.params.test_data=100
+```
+
+### 工程目录
+
+```
+entry/src/main/ets/
+├─entryability
+│ └─---EntryAbility.ets //添加订阅
+└─pages
+ └─---Index.ets //首页
+```
+
+### 具体实现
+
+1.在EntryAbility.ets中的onCreate函数中设定自定义参数(可选),添加系统事件的订阅。
+2.在Index.ets中添加按钮并在其onClick函数构造卡死场景,以触发卡死事件。
+
+### 相关权限
+
+不涉及。
+
+### 依赖
+
+不涉及。
+
+### 约束与限制
+
+1. 本示例仅支持标准系统上运行,支持设备:RK3568;
+2. 本示例已适配API14版本SDK,版本号:5.0.2.58,镜像版本号:OpenHarmony5.0.2.58;
+3. 本示例需要使用DevEco Studio(5.0.3.910)及以上版本才可编译运行。
+
+### 下载
+
+如需单独下载本工程,执行如下命令:
+
+```
+git init
+git config core.sparsecheckout true
+echo code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/ > .git/info/sparse-checkout
+git remote add origin https://gitee.com/openharmony/applications_app_samples.git
+git pull origin master
+```
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/build-profile.json5 b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/build-profile.json5
new file mode 100644
index 0000000000000000000000000000000000000000..e312bdee1cd355a915d330591875b32cb8a18b41
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/build-profile.json5
@@ -0,0 +1,52 @@
+/*
+ * Copyright (c) 2025 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.
+ */
+
+{
+ "app": {
+ "signingConfigs": [],
+ "products": [
+ {
+ "name": "default",
+ "signingConfig": "default",
+ "compatibleSdkVersion": 14,
+ "compileSdkVersion": 14,
+ "targetSdkVersion": 14,
+ "runtimeOS": "OpenHarmony"
+ }
+ ],
+ "buildModeSet": [
+ {
+ "name": "debug",
+ },
+ {
+ "name": "release"
+ }
+ ]
+ },
+ "modules": [
+ {
+ "name": "entry",
+ "srcPath": "./entry",
+ "targets": [
+ {
+ "name": "default",
+ "applyToProducts": [
+ "default"
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/.gitignore b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..e2713a2779c5a3e0eb879efe6115455592caeea5
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/.gitignore
@@ -0,0 +1,6 @@
+/node_modules
+/oh_modules
+/.preview
+/build
+/.cxx
+/.test
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/build-profile.json5 b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/build-profile.json5
new file mode 100644
index 0000000000000000000000000000000000000000..f46d585f002f76ce6e57cffcfdc31ba04241c229
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/build-profile.json5
@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) 2025 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.
+ */
+
+{
+ "apiType": "stageMode",
+ "buildOption": {
+ },
+ "buildOptionSet": [
+ {
+ "name": "release",
+ "arkOptions": {
+ "obfuscation": {
+ "ruleOptions": {
+ "enable": true,
+ "files": [
+ "./obfuscation-rules.txt"
+ ]
+ }
+ }
+ }
+ },
+ ],
+ "targets": [
+ {
+ "name": "default"
+ },
+ {
+ "name": "ohosTest",
+ }
+ ]
+}
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/hvigorfile.ts b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/hvigorfile.ts
new file mode 100644
index 0000000000000000000000000000000000000000..e042e3f963ab27941d3b34f1f027da9933b81df1
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/hvigorfile.ts
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2025 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.
+ */
+
+import { hapTasks } from '@ohos/hvigor-ohos-plugin';
+
+export default {
+ system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
+ plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
+}
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/obfuscation-rules.txt b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/obfuscation-rules.txt
new file mode 100644
index 0000000000000000000000000000000000000000..69c4d6a8a5531548e4886fa766090c5c157a87d9
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/obfuscation-rules.txt
@@ -0,0 +1,18 @@
+# Define project specific obfuscation rules here.
+# You can include the obfuscation configuration files in the current module's build-profile.json5.
+#
+# For more details, see
+# https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5
+
+# Obfuscation options:
+# -disable-obfuscation: disable all obfuscations
+# -enable-property-obfuscation: obfuscate the property names
+# -enable-toplevel-obfuscation: obfuscate the names in the global scope
+# -compact: remove unnecessary blank spaces and all line feeds
+# -remove-log: remove all console.* statements
+# -print-namecache: print the name cache that contains the mapping from the old names to new names
+# -apply-namecache: reuse the given cache file
+
+# Keep options:
+# -keep-property-name: specifies property names that you want to keep
+# -keep-global-name: specifies names that you want to keep in the global scope
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/oh-package.json5 b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/oh-package.json5
new file mode 100644
index 0000000000000000000000000000000000000000..dbacc308e4f7758a11b72c6a2af812b2471a0e8a
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/oh-package.json5
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2025 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.
+ */
+
+{
+ "name": "entry",
+ "version": "1.0.0",
+ "description": "Please describe the basic information.",
+ "main": "",
+ "author": "",
+ "license": "",
+ "dependencies": {}
+}
+
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/ets/entryability/EntryAbility.ets b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/ets/entryability/EntryAbility.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9c0afe35491b8ca85081ab94b36b7f7dbee007c7
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/ets/entryability/EntryAbility.ets
@@ -0,0 +1,137 @@
+/*
+ * Copyright (c) 2025 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.
+ */
+
+import { AbilityConstant, UIAbility, Want } from '@kit.AbilityKit';
+import { BusinessError } from '@kit.BasicServicesKit';
+import { hiAppEvent, hilog } from '@kit.PerformanceAnalysisKit';
+import { window } from '@kit.ArkUI';
+
+export default class EntryAbility extends UIAbility {
+ onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void {
+ hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onCreate');
+ // 开发者完成参数键值对赋值
+ let params: Record = {
+ "test_data": 100,
+ };
+ // 开发者可以设置卡死事件的自定义参数
+ hiAppEvent.setEventParam(params, hiAppEvent.domain.OS, hiAppEvent.event.APP_FREEZE).then(() => {
+ hilog.info(0x0000, 'testTag', `HiAppEvent success to set event param`);
+ }).catch((err: BusinessError) => {
+ hilog.error(0x0000, 'testTag', `HiAppEvent code: ${err.code}, message: ${err.message}`);
+ });
+ hiAppEvent.addWatcher({
+ // 开发者可以自定义观察者名称,系统会使用名称来标识不同的观察者
+ name: "watcher",
+ // 开发者可以订阅感兴趣的系统事件,此处是订阅了卡死事件
+ appEventFilters: [
+ {
+ domain: hiAppEvent.domain.OS,
+ names: [hiAppEvent.event.APP_FREEZE]
+ }
+ ],
+ // 开发者可以自行实现订阅实时回调函数,以便对订阅获取到的事件数据进行自定义处理
+ onReceive: (domain: string, appEventGroups: Array) => {
+ hilog.info(0x0000, 'testTag', `HiAppEvent onReceive: domain=${domain}`);
+ for (const eventGroup of appEventGroups) {
+ // 开发者可以根据事件集合中的事件名称区分不同的系统事件
+ hilog.info(0x0000, 'testTag', `HiAppEvent eventName=${eventGroup.name}`);
+ for (const eventInfo of eventGroup.appEventInfos) {
+ // 开发者可以对事件集合中的事件数据进行自定义处理,此处是将事件数据打印在日志中
+ hilog.info(0x0000, 'testTag', `HiAppEvent eventInfo.domain=${eventInfo.domain}`);
+ hilog.info(0x0000, 'testTag', `HiAppEvent eventInfo.name=${eventInfo.name}`);
+ hilog.info(0x0000, 'testTag', `HiAppEvent eventInfo.eventType=${eventInfo.eventType}`);
+ // 开发者可以获取到卡死事件发生的时间戳
+ hilog.info(0x0000, 'testTag', `HiAppEvent eventInfo.params.time=${eventInfo.params['time']}`);
+ // 开发者可以获取到卡死应用的前后台状态
+ hilog.info(0x0000, 'testTag', `HiAppEvent eventInfo.params.foreground=${eventInfo.params['foreground']}`);
+ // 开发者可以获取到卡死应用的版本信息
+ hilog.info(0x0000, 'testTag',
+ `HiAppEvent eventInfo.params.bundle_version=${eventInfo.params['bundle_version']}`);
+ // 开发者可以获取到卡死应用的包名
+ hilog.info(0x0000, 'testTag', `HiAppEvent eventInfo.params.bundle_name=${eventInfo.params['bundle_name']}`);
+ // 开发者可以获取到卡死应用的进程名称
+ hilog.info(0x0000, 'testTag',
+ `HiAppEvent eventInfo.params.process_name=${eventInfo.params['process_name']}`);
+ // 开发者可以获取到卡死应用的进程id
+ hilog.info(0x0000, 'testTag', `HiAppEvent eventInfo.params.pid=${eventInfo.params['pid']}`);
+ hilog.info(0x0000, 'testTag', `HiAppEvent eventInfo.params.uid=${eventInfo.params['uid']}`);
+ hilog.info(0x0000, 'testTag', `HiAppEvent eventInfo.params.uuid=${eventInfo.params['uuid']}`);
+ // 开发者可以获取到卡死事件发生的异常类型、异常原因
+ hilog.info(0x0000, 'testTag',
+ `HiAppEvent eventInfo.params.exception=${JSON.stringify(eventInfo.params['exception'])}`);
+ // 开发者可以获取到卡死事件发生时日志信息
+ hilog.info(0x0000, 'testTag', `HiAppEvent eventInfo.params.hilog.size=${eventInfo.params['hilog'].length}`);
+ // 开发者可以获取到卡死事件发生时主线程未处理消息
+ hilog.info(0x0000, 'testTag',
+ `HiAppEvent eventInfo.params.event_handler.size=${eventInfo.params['event_handler'].length}`);
+ hilog.info(0x0000, 'testTag',
+ `HiAppEvent eventInfo.params.event_handler_size_3s=${eventInfo.params['event_handler_size_3s']}`);
+ hilog.info(0x0000, 'testTag',
+ `HiAppEvent eventInfo.params.event_handler_size_6s=${eventInfo.params['event_handler_size_6s']}`);
+ // 开发者可以获取到卡死事件发生时同步binder调用信息
+ hilog.info(0x0000, 'testTag',
+ `HiAppEvent eventInfo.params.peer_binder.size=${eventInfo.params['peer_binder'].length}`);
+ // 开发者可以获取到卡死事件发生时全量线程调用栈
+ hilog.info(0x0000, 'testTag',
+ `HiAppEvent eventInfo.params.threads.size=${eventInfo.params['threads'].length}`);
+ // 开发者可以获取到卡死事件发生时内存信息
+ hilog.info(0x0000, 'testTag',
+ `HiAppEvent eventInfo.params.memory=${JSON.stringify(eventInfo.params['memory'])}`);
+ // 开发者可以获取到卡死事件发生时的故障日志文件
+ hilog.info(0x0000, 'testTag',
+ `HiAppEvent eventInfo.params.external_log=${JSON.stringify(eventInfo.params['external_log'])}`);
+ hilog.info(0x0000, 'testTag',
+ `HiAppEvent eventInfo.params.log_over_limit=${eventInfo.params['log_over_limit']}`);
+ // 开发者可以获取到卡死事件的自定义数据test_data
+ hilog.info(0x0000, 'testTag', `HiAppEvent eventInfo.params.test_data=${eventInfo.params['test_data']}`);
+ }
+ }
+ }
+ });
+
+ }
+
+ onDestroy(): void {
+ hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onDestroy');
+ }
+
+ onWindowStageCreate(windowStage: window.WindowStage): void {
+ // Main window is created, set main page for this ability
+ hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
+
+ windowStage.loadContent('pages/Index', (err) => {
+ if (err.code) {
+ hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? '');
+ return;
+ }
+ hilog.info(0x0000, 'testTag', 'Succeeded in loading the content.');
+ });
+ }
+
+ onWindowStageDestroy(): void {
+ // Main window is destroyed, release UI related resources
+ hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageDestroy');
+ }
+
+ onForeground(): void {
+ // Ability has brought to foreground
+ hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onForeground');
+ }
+
+ onBackground(): void {
+ // Ability has back to background
+ hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onBackground');
+ }
+}
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets
new file mode 100644
index 0000000000000000000000000000000000000000..29feaca7669174be5c2b0e2366529ee94ab7e726
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2025 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.
+ */
+
+import { hilog } from '@kit.PerformanceAnalysisKit';
+import { BackupExtensionAbility, BundleVersion } from '@kit.CoreFileKit';
+
+export default class EntryBackupAbility extends BackupExtensionAbility {
+ async onBackup() {
+ hilog.info(0x0000, 'testTag', 'onBackup ok');
+ }
+
+ async onRestore(bundleVersion: BundleVersion) {
+ hilog.info(0x0000, 'testTag', 'onRestore ok %{public}s', JSON.stringify(bundleVersion));
+ }
+}
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/ets/pages/Index.ets b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/ets/pages/Index.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a973aa208d5657a2ef2e624cfa1746d4bb69c15b
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/ets/pages/Index.ets
@@ -0,0 +1,42 @@
+/*
+ * Copyright (c) 2025 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.
+ */
+
+@Entry
+@Component
+struct Index {
+ build() {
+ Row() {
+ Column() {
+ Button("appFreeze ArkTS")
+ .type(ButtonType.Capsule)
+ .margin({
+ top: 20
+ })
+ .backgroundColor('#0D9FFB')
+ .width('40%')
+ .height('5%')
+ .onClick(() => {
+ // 在按钮点击函数中构造一个freeze场景,触发应用卡死事件
+ setTimeout(() => {
+ while (true) {
+ }
+ }, 1000)
+ })
+ }
+ .width('100%')
+ }
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/module.json5 b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/module.json5
new file mode 100644
index 0000000000000000000000000000000000000000..9f7f873fbc51484895e18fcfd60b2498521aecb0
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/module.json5
@@ -0,0 +1,66 @@
+/*
+ * Copyright (c) 2025 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.
+ */
+
+{
+ "module": {
+ "name": "entry",
+ "type": "entry",
+ "description": "$string:module_desc",
+ "mainElement": "EntryAbility",
+ "deviceTypes": [
+ "default",
+ "tablet"
+ ],
+ "deliveryWithInstall": true,
+ "installationFree": false,
+ "pages": "$profile:main_pages",
+ "abilities": [
+ {
+ "name": "EntryAbility",
+ "srcEntry": "./ets/entryability/EntryAbility.ets",
+ "description": "$string:EntryAbility_desc",
+ "icon": "$media:layered_image",
+ "label": "$string:EntryAbility_label",
+ "startWindowIcon": "$media:startIcon",
+ "startWindowBackground": "$color:start_window_background",
+ "exported": true,
+ "skills": [
+ {
+ "entities": [
+ "entity.system.home"
+ ],
+ "actions": [
+ "action.system.home"
+ ]
+ }
+ ]
+ }
+ ],
+ "extensionAbilities": [
+ {
+ "name": "EntryBackupAbility",
+ "srcEntry": "./ets/entrybackupability/EntryBackupAbility.ets",
+ "type": "backup",
+ "exported": false,
+ "metadata": [
+ {
+ "name": "ohos.extension.backup",
+ "resource": "$profile:backup_config"
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/element/color.json b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/element/color.json
new file mode 100644
index 0000000000000000000000000000000000000000..3c712962da3c2751c2b9ddb53559afcbd2b54a02
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/element/color.json
@@ -0,0 +1,8 @@
+{
+ "color": [
+ {
+ "name": "start_window_background",
+ "value": "#FFFFFF"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/element/string.json b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..3d868cc811c8f49a74b41bbcd205c11f2c6742e4
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/element/string.json
@@ -0,0 +1,16 @@
+{
+ "string": [
+ {
+ "name": "module_desc",
+ "value": "module description"
+ },
+ {
+ "name": "EntryAbility_desc",
+ "value": "description"
+ },
+ {
+ "name": "EntryAbility_label",
+ "value": "FreezeEvent_ArkTS"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/media/background.png b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/media/background.png
new file mode 100644
index 0000000000000000000000000000000000000000..f939c9fa8cc8914832e602198745f592a0dfa34d
Binary files /dev/null and b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/media/background.png differ
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/media/foreground.png b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/media/foreground.png
new file mode 100644
index 0000000000000000000000000000000000000000..4483ddad1f079e1089d685bd204ee1cfe1d01902
Binary files /dev/null and b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/media/foreground.png differ
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/media/layered_image.json b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/media/layered_image.json
new file mode 100644
index 0000000000000000000000000000000000000000..fb49920440fb4d246c82f9ada275e26123a2136a
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/media/layered_image.json
@@ -0,0 +1,7 @@
+{
+ "layered-image":
+ {
+ "background" : "$media:background",
+ "foreground" : "$media:foreground"
+ }
+}
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/media/startIcon.png b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/media/startIcon.png
new file mode 100644
index 0000000000000000000000000000000000000000..205ad8b5a8a42e8762fbe4899b8e5e31ce822b8b
Binary files /dev/null and b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/media/startIcon.png differ
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/profile/backup_config.json b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/profile/backup_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..78f40ae7c494d71e2482278f359ec790ca73471a
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/profile/backup_config.json
@@ -0,0 +1,3 @@
+{
+ "allowToBackupRestore": true
+}
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/profile/main_pages.json b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/profile/main_pages.json
new file mode 100644
index 0000000000000000000000000000000000000000..1898d94f58d6128ab712be2c68acc7c98e9ab9ce
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/base/profile/main_pages.json
@@ -0,0 +1,5 @@
+{
+ "src": [
+ "pages/Index"
+ ]
+}
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/en_US/element/string.json b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/en_US/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..3d868cc811c8f49a74b41bbcd205c11f2c6742e4
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/en_US/element/string.json
@@ -0,0 +1,16 @@
+{
+ "string": [
+ {
+ "name": "module_desc",
+ "value": "module description"
+ },
+ {
+ "name": "EntryAbility_desc",
+ "value": "description"
+ },
+ {
+ "name": "EntryAbility_label",
+ "value": "FreezeEvent_ArkTS"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/zh_CN/element/string.json b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/zh_CN/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..6871a49e230c992641e163daa760b5a416a3be66
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/main/resources/zh_CN/element/string.json
@@ -0,0 +1,16 @@
+{
+ "string": [
+ {
+ "name": "module_desc",
+ "value": "模块描述"
+ },
+ {
+ "name": "EntryAbility_desc",
+ "value": "description"
+ },
+ {
+ "name": "EntryAbility_label",
+ "value": "FreezeEvent_ArkTSs"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/mock/mock-config.json5 b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/mock/mock-config.json5
new file mode 100644
index 0000000000000000000000000000000000000000..a99e1d70a555e9935e93519642bb8d05bcb5a149
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/entry/src/mock/mock-config.json5
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2025 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.
+ */
+
+{
+}
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/hvigor/hvigor-config.json5 b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/hvigor/hvigor-config.json5
new file mode 100644
index 0000000000000000000000000000000000000000..a2c44fdf8f9ac103168672568ff000ac395a2edc
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/hvigor/hvigor-config.json5
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2025 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.
+ */
+
+{
+ "modelVersion": "5.0.0",
+ "dependencies": {
+ },
+ "execution": {
+ // "analyze": "normal", /* Define the build analyze mode. Value: [ "normal" | "advanced" | false ]. Default: "normal" */
+ // "daemon": true, /* Enable daemon compilation. Value: [ true | false ]. Default: true */
+ // "incremental": true, /* Enable incremental compilation. Value: [ true | false ]. Default: true */
+ // "parallel": true, /* Enable parallel compilation. Value: [ true | false ]. Default: true */
+ // "typeCheck": false, /* Enable typeCheck. Value: [ true | false ]. Default: false */
+ },
+ "logging": {
+ // "level": "info" /* Define the log level. Value: [ "debug" | "info" | "warn" | "error" ]. Default: "info" */
+ },
+ "debugging": {
+ // "stacktrace": false /* Disable stacktrace compilation. Value: [ true | false ]. Default: false */
+ },
+ "nodeOptions": {
+ // "maxOldSpaceSize": 8192 /* Enable nodeOptions maxOldSpaceSize compilation. Unit M. Used for the daemon process. Default: 8192*/
+ // "exposeGC": true /* Enable to trigger garbage collection explicitly. Default: true*/
+ }
+}
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/hvigorfile.ts b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/hvigorfile.ts
new file mode 100644
index 0000000000000000000000000000000000000000..79d8761856e2996edc0649eca63b96b2c883b28a
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/hvigorfile.ts
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2025 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.
+ */
+
+import { appTasks } from '@ohos/hvigor-ohos-plugin';
+
+export default {
+ system: appTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
+ plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
+}
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/oh-package.json5 b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/oh-package.json5
new file mode 100644
index 0000000000000000000000000000000000000000..b7f346f7ddb2fc98ac428c55207a63ff89ea1c70
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/oh-package.json5
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2025 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.
+ */
+
+{
+ "modelVersion": "5.0.0",
+ "description": "Please describe the basic information.",
+ "dependencies": {
+ },
+ "devDependencies": {
+ "@ohos/hypium": "1.0.18",
+ "@ohos/hamock": "1.0.0"
+ }
+}
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/ohosTest.md b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/ohosTest.md
new file mode 100644
index 0000000000000000000000000000000000000000..e1d45786d9b2548d4460f857b55cc12cf0e28246
--- /dev/null
+++ b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/ohosTest.md
@@ -0,0 +1,6 @@
+# FreezeEvent_ArkTS测试用例归档
+
+| 测试功能 | 预置条件 | 输入 | 预期输出 | 是否自动 | 测试结果 |
+| ------------ | ------------ | ------------ | ------------ | -------- | -------- |
+| 拉起应用 | 设备正常运行 | | 成功拉起应用 | 否 | Pass |
+| 主页按钮点击 | 位于主页 | 依次点击按钮 | 输出预期日志 | 否 | Pass |
\ No newline at end of file
diff --git a/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/screenshots/Screenshot_20241216172715954.jpeg b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/screenshots/Screenshot_20241216172715954.jpeg
new file mode 100644
index 0000000000000000000000000000000000000000..82c9a550d166b58132bcfb3b885f2dfb68bd116f
Binary files /dev/null and b/code/DocsSample/PerformanceAnalysisKit/HiAppEvent/EventSub/SystemEvents/FreezeEvent/FreezeEvent_ArkTS/screenshots/Screenshot_20241216172715954.jpeg differ