When you define a Windows Performance Recorder (WPR) profile, you must select a logging mode from the following options:
The logging mode is set to Memory by default. However, On/off transitions are always logged to a file.
Logging to file is typically used for short recordings for which you can anticipate the events that will be recorded. Logging to memory is typically used to log events that can occur at any time. When WPR logs to memory, buffer size and the level of profile detail determine how long WPR can log data before old events are overwritten.
Caution To limit file size, choose Memory. When logging to file, available disk space is the only limitation to file size. If the file is too large, you might not be able to analyze it in Windows Performance Analyzer (WPA).
When you author custom recording profiles, you must define both a file and a memory version in the same recording profile definition (.wprp) file. When you select a profile for a recording, you must select either the file or memory version to use for that recording event. For examples of custom profiles, see 3. Profile Definitions.
A .wprp file can have up to four profile definitions: one for each combination of detail level and logging mode. The following constraints are enforced:
When you author a custom profile, you must define the BufferSize element and the Buffers element. You can define the total amount of buffer as a fixed number of buffers by using a size that you define in kilobytes (KB), or as a percentage of total memory. The default buffer count is 64, and the default buffer size is 128 KB.
You can use the WPR command-line interface to view the size and number of buffers that each provider uses.
wpr -profiledetails CPU Microsoft Windows Performance Recorder Version 6.2.9200 Profile : CPU.Verbose.Memory Collector Name : NT Kernel Logger Buffer Size (KB) : 1024 Number of Buffers : 613
Note WPR supports only single-value NumberOfBuffers. It does not support minimum and maximum buffers.
General guidelines about how to set buffers are as follows:
For more guidance about buffers, see Sessions (Windows Drivers).