Compartir a través de


Xperf Built-in Profiles

Applies To: Windows 8, Windows 8.1

To display all the built-in Xperf profiles, run the following command.

xperf -profiles

The following table describes available profiles.

Profile Description

perf!FileIOProfiles.InSequentialFile

File I/O tracing profile in a sequential file.

perf!FileIOProfiles.InBuffer

File I/O tracing profile in a buffer.

perf!GeneralProfiles.InSequentialFile

Common system metrics tracing profile in a sequential file.

perf!GeneralProfiles.InBuffer

Common system metrics tracing profile in a buffer.

perf!PerfCoreProfiles.InSequentialFile

Basic system metrics tracing profile (included with all built-in profiles) in a sequential file.

perf!PerfCoreProfiles.InBuffer

Basic system metrics tracing profile (included with all built-in profiles) in a buffer.

perf!RegistryProfiles.InSequentialFile

Registry tracing profile in a sequential file.

perf!RegistryProfiles.InBuffer

Registry tracing profile in a buffer.

perf!StdProfile

Common definitions used in built-in profiles (not startable).

Examples

The following examples turn on several ETW sessions and merge them into a single trace file as needed.

Memory-based trace profile

For an in-memory repeated snapshots trace profile, run the following command.

xperf -start perf!GeneralProfiles.InBuffer

Run some scenario, and then run the following command.

xperf -save perf!GeneralProfiles.InBuffer snapshot1.etl

You can optionally continue saving additional snapshots, and then stop the trace capturing by running the following command.

xperf -cancel perf!GeneralProfiles.InBuffer

File-based trace profile

To start a file-based trace profile, run following command.

xperf -start perf!RegistryProfiles.InSequentialFile

Run some scenario, and then run the following command to stop trace capturing.

xperf -stop perf!RegistryProfiles.InSequentialFile trace.etl

Extending profile definitions

Profile definitions can be extended and composed using the command line. For example, to add ReadyThread stacks to the perf!FileIOProfiles.InSequentialFile profile, run the following command.

xperf -start perf!FileIOProfiles.InSequentialFile -stackwalk ReadyThread

See Also

Other Resources

Xperf Profiles