• Home
Name Date Size #Lines LOC

..--

client/12-May-2024-37,72531,923

doc/12-May-2024-1,5871,513

figures/12-May-2024-

ide/12-May-2024-135,694120,925

trace_streamer/12-May-2024-68,14257,876

README_zh.mdD12-May-20242.7 KiB5644

README_zh.md

1# SmartPerf
2
3-   [简介](#简介)
4-   [目录](#目录)
5-   [约束](#约束)
6-   [相关文档](#相关文档)
7
8## 简介
9在OpenHarmony中,研发工具链子系统主要为开发人员提供了开发时用于调试的命令行以及追踪性能轨迹、查看性能的工具。SmartPerf 旨在为开发者提供一套性能调优组件,可以用来分析系统内存、性能等问题。
10
11
12其主要的结构如下图所示:
13
14![系统架构图](./figures/smartperf_framework.png)
15
16
17## 目录
18```
19/developtools/profiler/host/smartperf
20├── doc                      # SmartPerf 相关使用文档
21├── ide                      # SmartPerf IDE 模块目录
22│   └── src                  # 主机测调优模块代码
23│   │   ├── base-ui          # 基础组件目录
24│   │   └── Trace            # 业务逻辑目录
25├── trace_streame            # 解析模块代码目录
26│   ├── base                 # 基础功能
27│   ├── cfg                  # 配置目录
28│   ├── filter               # Filter功能
29│   ├── include              # Include头文件
30│   ├── multi_platform       # 平台适配
31│   ├── parser               # 解析业务逻辑
32│   │   ├── bytrace_parser   # byTrace解析业务逻辑
33│   │   └── htrace_parser    # hTrace 解析业务逻辑
34│   ├── table                # 表结构
35│   ├── trace_data           # trace 结构
36│   ├── trace_streamer       # traceStreamer 结构
37│   │   └── kits             # js/napi接口存放目录
38```
39
40
41
42## 约束
43- 语言版本
44    - C++11或以上
45    - TypeScript 4.2.3
46
47
48## 相关文档
49- [quickstart_trace_streamer](https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/doc/quickstart_trace_streamer.md)
50- [quickstart_smartperf](https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/doc/quickstart_smartperf.md)
51- [quickstart_hiprofiler_cmd](https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/doc/quickstart_hiprofiler_cmd.md)
52- [compile_smartperf](https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/doc/compile_smartperf.md)
53- [compile_trace_streamer](https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/doc/compile_trace_streamer.md)
54- [des_stat](https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/doc/des_stat.md)
55- [des_support_event](https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/doc/des_support_event.md)
56- [des_tables](https://gitee.com/openharmony/developtools_profiler/blob/master/host/smartperf/doc/des_tables.md)