70-695 · Question #102
You want to test the performance of one of the Windows 8 clients in the office by using XPerf.exe. You have started a trace with BASE Kernel Group and cswitch Kernel Flag. xperf -on base+cswitch You…
The correct answer is A. xperf -d mytrace.etl. To stop an Xperf trace and save the collected data to a specified .etl file, the -d option followed by the filename is used.
Question
You want to test the performance of one of the Windows 8 clients in the office by using XPerf.exe. You have started a trace with BASE Kernel Group and cswitch Kernel Flag. xperf -on base+cswitch You now want to stop the trace and save it in a file called mytrace.etl. Which command should you use?
Options
- Axperf -d mytrace.etl
- Bxperf -i mytrace.etl
- Cxperf -i mytrace.etl -a tracestats 璬etail
- Dxperf -merge mytrace.etl kernel.etl
How the community answered
(25 responses)- A72% (18)
- B8% (2)
- C16% (4)
- D4% (1)
Why each option
To stop an Xperf trace and save the collected data to a specified .etl file, the -d option followed by the filename is used.
The `xperf -d <filename.etl>` command is specifically used to stop a running Xperf trace session and write the collected performance data to the specified Event Trace Log (.etl) file. This action finalizes the trace and saves it for later analysis.
The `xperf -i` command is used to display information about a trace file, not to stop and save a trace.
This command uses `xperf -i` which is for displaying trace information, and `-a tracestats` is for analyzing a trace, not for stopping and saving.
The `xperf -merge` command is used to combine multiple trace files into a single file, not to stop a currently active trace.
Concept tested: Xperf command-line utility for performance tracing
Source: https://learn.microsoft.com/en-us/windows-hardware/test/wpt/xperf-command-line-options
Topics
Community Discussion
No community discussion yet for this question.