12b7e0694Sopenharmony_ci# Js Profiler转换工具说明 22b7e0694Sopenharmony_ci 32b7e0694Sopenharmony_ci将真机的数字化文本转换成js性能打点记录 42b7e0694Sopenharmony_ci 52b7e0694Sopenharmony_ci## 文件说明 62b7e0694Sopenharmony_ci 72b7e0694Sopenharmony_ci- `js_profiler.py` 入口文件,根据参数进行信息转换 82b7e0694Sopenharmony_ci- `js_profiler_config.py` 配置文件 92b7e0694Sopenharmony_ci 102b7e0694Sopenharmony_ci## 使用方法 112b7e0694Sopenharmony_ci 122b7e0694Sopenharmony_ci#### 环境搭建 132b7e0694Sopenharmony_ci 142b7e0694Sopenharmony_ci1. 安装python环境 152b7e0694Sopenharmony_ci - python >= 3.6 162b7e0694Sopenharmony_ci2. 使用python 运行`js_profiler.py`文件 172b7e0694Sopenharmony_ci 182b7e0694Sopenharmony_ci#### 使用示例: 192b7e0694Sopenharmony_ci 202b7e0694Sopenharmony_ci``` bash 212b7e0694Sopenharmony_ci# 转换 222b7e0694Sopenharmony_cipython js_profiler.py --source D:\workspace\hmf\ace\lite\ace_profiler_582.log --destination D:\workspace\hmf\ace\lite\ace_profiler_582_real.log 232b7e0694Sopenharmony_ci``` 242b7e0694Sopenharmony_ci 252b7e0694Sopenharmony_ci#### 参数说明 262b7e0694Sopenharmony_ci 272b7e0694Sopenharmony_ci* `--source` 待转换的文件,例如 `D:\workspace\hmf\ace\lite\ace_profiler_582.log` 282b7e0694Sopenharmony_ci* `--destination` 生成的文件,例如 `D:\workspace\hmf\ace\lite\ace_profiler_582_real.log` 29