| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| adapter/ | 22-Oct-2025 | - | 88 | 80 | ||
| common/ | 22-Oct-2025 | - | 218 | 155 | ||
| docs/ | 22-Oct-2025 | - | 43 | 30 | ||
| figures/ | 22-Oct-2025 | - | ||||
| inspector/ | 22-Oct-2025 | - | 2,205 | 1,708 | ||
| platform/ | 22-Oct-2025 | - | 119 | 61 | ||
| test/ | 22-Oct-2025 | - | 31,831 | 21,071 | ||
| tooling/ | 22-Oct-2025 | - | 71,180 | 55,937 | ||
| websocket/ | 22-Oct-2025 | - | 3,392 | 2,380 | ||
| .gitignore | D | 22-Oct-2025 | 67 | 3 | 2 | |
| BUILD.gn | D | 22-Oct-2025 | 6.5 KiB | 294 | 271 | |
| CODEOWNERS | D | 22-Oct-2025 | 613 | 17 | 14 | |
| LICENSE | D | 22-Oct-2025 | 9.9 KiB | 177 | 150 | |
| OAT.xml | D | 22-Oct-2025 | 4.2 KiB | 74 | 20 | |
| README_zh.md | D | 22-Oct-2025 | 2.5 KiB | 56 | 39 | |
| REVIEWERS | D | 22-Oct-2025 | 709 | 16 | 14 | |
| bundle.json | D | 22-Oct-2025 | 1.8 KiB | 66 | 65 | |
| toolchain.gni | D | 22-Oct-2025 | 922 | 26 | 21 | |
| toolchain_config.gni | D | 22-Oct-2025 | 3.6 KiB | 121 | 107 |
README_zh.md
1# 方舟工具链组件 2 3- [方舟工具链](#方舟工具链) 4 - [简介<a name="section0001"></a>](#简介) 5 - [目录<a name="section0002"></a>](#目录) 6 - [使用说明<a name="section0003"></a>](#使用说明) 7 - [编译构建<a name="section0004"></a>](#编译构建) 8 - [相关仓<a name="section0005"></a>](#相关仓) 9 10## 简介<a name="section0001"></a> 11方舟工具链(ArkCompiler Toolchain)为开发者提供了调试(Debugger), 性能调优(CPUProfiler), 内存调优(HeapProfiler)等针对ArkTS应用程序的调试调优工具。如需查看调试调优工具具体支持特性,请前往[调试调优工具介绍](docs/debugger-and-profiler-tools-introduction.md)。 12 13### 方舟工具链架构图 14 15 16 17方舟工具链提供的调试调优能力,需通过DevEco Studio使用,同时依赖于ArkCompiler Runtime提供运行时相关信息。 18 19### 调试调优协议实现 20 21调试调优实现划分不同的域,每个域定义其所支持的协议命令: 22- Debugger域实现包括断点、单步、停止执行、恢复执行以及CallFrame求值等调试功能。 23- Profiler域实现包括启动采样、停止采样以及设置采样间隔等CPU调优功能。 24- HeapProfiler域实现包括启动采样、停止采样、垃圾收集以及获取堆内存快照等堆内存调优功能。 25- Runtime域实现包括堆获取内存使用情况、获取对象属性等运行时相关功能。 26 27## 目录<a name="section0002"></a> 28 29``` 30/arkcompiler/toolchain 31├─ tooling # 调试调优协议实现 32├─ inspector # 调试协议对接层,包括会话连接,消息转发等 33└─ websocket # websocket协议实现 34``` 35 36## 使用说明<a name="section0003"></a> 37 38调试应用时,需要配套DevEco Studio和SDK使用,详细的指导请前往[应用调试](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ide_debug_device-0000001053822404)。此外,对调试调优特性支持情况可前往[DevEco Studio版本说明](https://developer.harmonyos.com/cn/docs/documentation/doc-releases/release_notes-0000001057597449)查看详细说明。 39 40 41## 编译构建<a name="section0004"></a> 421. inspector 43```sh 44$ ./build.sh --product-name rk3568 --build-target ark_debugger 45``` 462. tooling 47```sh 48$ ./build.sh --product-name rk3568 --build-target libark_ecma_debugger 49``` 50 51## 相关仓<a name="section0005"></a> 52 53**[arkcompiler\_toolchain](https://gitee.com/openharmony/arkcompiler_toolchain)** 54 55[arkcompiler\_ets\_runtime](https://gitee.com/openharmony/arkcompiler_ets_runtime) 56