Skip to content

Commit 3090da1

Browse files
authored
[Doc] Fix XProfiler benchmark documentation typos (#341)
Signed-off-by: Lidang Jiang <lidangjiang@gmail.com>
1 parent b49bb85 commit 3090da1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/source/developer_guide/performance/performance_benchmark/benchmark_kernel.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ More parameters can be found in the command-line parameters section later.
4444

4545
The time mode is used to track user programs for a period of time. This method is suitable for tasks that need to run for a long time.
4646

47-
Using the -t or --time command-line parameter, XPorfiler will run for the specified time and then exit, in seconds. In this mode, the application needs to be started separately. An example is as follows:
47+
Using the -t or --time command-line parameter, XProfiler will run for the specified time and then exit, in seconds. In this mode, the application needs to be started separately. An example is as follows:
4848

49-
(1) Starting XPorfiler
49+
(1) Starting XProfiler
5050

5151
```bash
5252
/xxxx/xxxx/xprofiler -r 500 --xpu=0 -t600 # Time mode collects events within a specified time period, measured in seconds (s).
@@ -63,7 +63,7 @@ export XPU_TRACING_OUTPUT_NAME=<xprofiler execution directory>/xprofiler.sock
6363
python xxx.py
6464
```
6565

66-
#### deamon mode
66+
#### daemon mode
6767

6868
The daemon mode is used to track the event timeline of a specified code segment, eliminating interference from redundant information. The startup command is the same as in fork mode.
6969

@@ -81,9 +81,9 @@ xtorch_ops.kunlun_profiler_start()
8181
xtorch_ops.kunlun_profiler_end()
8282
```
8383

84-
(2) Launch X profiler in a terminal
84+
(2) Launch XProfiler in a terminal
8585

86-
```python
86+
```bash
8787
# Specify the output file as the trace_output file in the current path.
8888
/xxxx/xxxx/xprofiler-Linux_x86_64-2.0.2.0/bin/xprofiler -r 500 --xpu=0 -e ./trace_output -d
8989
```
@@ -96,7 +96,7 @@ xprofiler.sock
9696

9797
(3) Launch your own program on another terminal.
9898

99-
```python
99+
```bash
100100
export XPU_ENABLE_PROFILER_TRACING=1
101101
# Here, the path to the .sock file from step 2 is used for assignment.
102102
export XPU_TRACING_OUTPUT_NAME=<xprofiler execution directory>/xprofiler.sock

0 commit comments

Comments
 (0)