Skip to content

Commit 09b5273

Browse files
committed
wperf: fix missing double-dash operator in record command
1 parent 107c01b commit 09b5273

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/learning-paths/laptops-and-desktops/windowsperf_sampling_cpython/windowsperf_sampling_cpython_example_2.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ weight: 4
66

77
## Example 2: Using the `record` command to simplify things
88

9-
The `record` command spawns the process and pins it to the core specified by the `-c` option. You can either use --pe_file to let WindowsPerf know which process to spawn or simply add the process to spawn at the very end of the `wperf` command.
9+
The `record` command spawns the process and pins it to the core specified by the `-c` option. You can either use `--pe_file` to let WindowsPerf know which process to spawn or simply add the process to spawn at the very end of the `wperf` command.
1010

1111
This simplifies the steps presented in the previous example.
1212

1313
If you want to pass command line arguments to your application, you can call them after all of the WindowsPerf options. All command line arguments are going to be passed
1414
verbatim to the program that is being spawned. If you want to execute the CPython example above using this approach, you could just type:
1515

1616
```command
17-
wperf record -e ld_spec:100000 -c 1 --timeout 30 python_d.exe -c 10**10**100
17+
wperf record -e ld_spec:100000 -c 1 --timeout 30 -- python_d.exe -c 10**10**100
1818
```
1919

2020
{{% notice Note%}}
21-
This command will automatically spawn the process `python_d.exe -c 10**10**100` (and pass command line options to it), sample for 30 seconds with --timeout 30 event ld_spec with sample frequency of 100000.
21+
This command will automatically spawn the process `python_d.exe -c 10**10**100` (and pass command line options to it), sample for 30 seconds with `--timeout 30` event `ld_spec` with sample frequency of `100000`.
2222
{{% /notice %}}
2323

2424
You should see the same output from this command as in the previous section.

0 commit comments

Comments
 (0)