nerdexam
Microsoft

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.

Implement Application Compatibility

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)
  • A
    72% (18)
  • B
    8% (2)
  • C
    16% (4)
  • D
    4% (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.

Axperf -d mytrace.etlCorrect

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.

Bxperf -i mytrace.etl

The `xperf -i` command is used to display information about a trace file, not to stop and save a trace.

Cxperf -i mytrace.etl -a tracestats 璬etail

This command uses `xperf -i` which is for displaying trace information, and `-a tracestats` is for analyzing a trace, not for stopping and saving.

Dxperf -merge mytrace.etl kernel.etl

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

#XPerf#Performance monitoring#Windows diagnostics#Command-line tools

Community Discussion

No community discussion yet for this question.

Full 70-695 Practice