From 09b52736ef7ecc93cb53e31b6ba1f4bd082285a4 Mon Sep 17 00:00:00 2001 From: Przemyslaw Wirkus Date: Tue, 10 Dec 2024 11:11:54 +0000 Subject: [PATCH] wperf: fix missing double-dash operator in record command --- .../windowsperf_sampling_cpython_example_2.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/learning-paths/laptops-and-desktops/windowsperf_sampling_cpython/windowsperf_sampling_cpython_example_2.md b/content/learning-paths/laptops-and-desktops/windowsperf_sampling_cpython/windowsperf_sampling_cpython_example_2.md index 049718d00..94d70c7ae 100644 --- a/content/learning-paths/laptops-and-desktops/windowsperf_sampling_cpython/windowsperf_sampling_cpython_example_2.md +++ b/content/learning-paths/laptops-and-desktops/windowsperf_sampling_cpython/windowsperf_sampling_cpython_example_2.md @@ -6,7 +6,7 @@ weight: 4 ## Example 2: Using the `record` command to simplify things -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. +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. This simplifies the steps presented in the previous example. @@ -14,11 +14,11 @@ If you want to pass command line arguments to your application, you can call the verbatim to the program that is being spawned. If you want to execute the CPython example above using this approach, you could just type: ```command -wperf record -e ld_spec:100000 -c 1 --timeout 30 python_d.exe -c 10**10**100 +wperf record -e ld_spec:100000 -c 1 --timeout 30 -- python_d.exe -c 10**10**100 ``` {{% notice Note%}} -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. +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`. {{% /notice %}} You should see the same output from this command as in the previous section.