diff --git a/README.md b/README.md index cf7ef53..cb05942 100644 --- a/README.md +++ b/README.md @@ -37,70 +37,19 @@ The following table lists the commands supported by ByTrace. ** Table 1** Commands supported by ByTrace - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Option

-

Description

-

-h, --help

-

Views the help Information.

-

-b n, --buffer_size n

-

Sets the size of the buffer (KB) for storing and reading traces. The default buffer size is 2048 KB.

-

-t n, --time n

-

Sets the ByTrace uptime in seconds, which depends on the time required for analysis.

-

--trace_clock clock

-

Sets the type of the clock for adding a timestamp to a trace, which can be boot (default), global, mono, uptime, or perf.

-

--trace_begin

-

Starts trace.

-

--trace_dump

-

Dumps traced data to a specified position (the default position is the console).

-

--trace_finish

-

Stops capturing traces and dumps traced data to a specified position (the default position is the console).

-

-l, --list_categories

-

Lists the ByTrace categories supported by the device.

-

--overwrite

-

Sets the action to take when the buffer is full. If this option is used, the latest traced data is discarded.

-

-o filename, --output filename

-

Outputs traced data to a specified file.

-

-z

-

Compresses traced data.

-
+| Option | Description | +|---------|------------| +| -h, --help | Views the help Information. | +| -b n, --buffer_size n | Sets the size of the buffer (KB) for storing and reading traces. The default buffer size is 2048 KB. | +| -t n, --time n | Sets the ByTrace uptime in seconds, which depends on the time required for analysis. | +| --trace_clock clock | Sets the type of the clock for adding a timestamp to a trace, which can be boot (default), global, mono, uptime, or perf. | +| --trace_begin | Starts trace. | +| --trace_dump | Dumps traced data to a specified position (the default position is the console). | +| --trace_finish | Stops capturing traces and dumps traced data to a specified position (the default position is the console). | +| -l, --list_categories | Lists the ByTrace categories supported by the device. | +| --overwrite | Sets the action to take when the buffer is full. If this option is used, the latest traced data is discarded. | +| -o filename, --output filename | Outputs traced data to a specified file. | +| -z | Compresses traced data. | The following are some example ByTrace commands: @@ -140,6 +89,6 @@ The following are some example ByTrace commands: ## Repositories Involved -Development Tools Subsystem +[Development Tools Subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/development-toolchain.md) **developtools\_bytrace\_standard** diff --git a/README_zh.md b/README_zh.md index bc9d2c0..31724bc 100644 --- a/README_zh.md +++ b/README_zh.md @@ -39,70 +39,19 @@ bytrace当前支持如下命令: **表 1** 命令行列表 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Option

-

Description

-

-h,--help

-

查看option帮助

-

-b n,--buffer_size n

-

指定n(KB)内存大小用于存取trace日志,默认2048KB

-

-t n,--time n

-

用来指定trace运行的时间(单位:s),取决于需要分析过程的时间

-

--trace_clock clock

-

trace输出的时钟类型,一般设备支持boot、global、mono、uptime、perf等,默认为boot

-

--trace_begin

-

启动抓trace

-

--trace_dump

-

将数据输出到指定位置(默认控制台)

-

--trace_finish

-

停止抓trace,并将数据输出到指定位置(默认控制台)

-

-l,--list_categories

-

输出手机能支持的trace模块

-

--overwrite

-

当缓冲区满的时候,将丢弃最新的信息。(默认丢弃最老的日志)

-

-o filename,--output filename

-

指定输出的目标文件名称

-

-z

-

抓取trace后进行压缩

-
+| Option | Description | +|--------|------------| +| -h,--help | 查看option帮助 | +| -b n,--buffer_size n | 指定n(KB)内存大小用于存取trace日志,默认2048KB | +| -t n,--time n | 用来指定trace运行的时间(单位:s),取决于需要分析过程的时间 | +| --trace_clock clock | trace输出的时钟类型,一般设备支持boot、global、mono、uptime、perf等,默认为boot | +| --trace_begin | 启动抓trace | +| --trace_dump | 将数据输出到指定位置(默认控制台) | +| --trace_finish | 停止抓trace,并将数据输出到指定位置(默认控制台) | +| -l,--list_categories | 输出手机能支持的trace模块 | +| --overwrite | 当缓冲区满的时候,将丢弃最新的信息。(默认丢弃最老的日志) | +| -o filename,--output filename | 指定输出的目标文件名称 | +| -z | 抓取trace后进行压缩 | 以下是常用bytrace命令示例,供开发者参考: @@ -142,7 +91,7 @@ bytrace当前支持如下命令: ## 相关仓 -研发工具链子系统 +[研发工具链子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/%E7%A0%94%E5%8F%91%E5%B7%A5%E5%85%B7%E9%93%BE%E5%AD%90%E7%B3%BB%E7%BB%9F.md) **developtools\_bytrace\_standard**