Partager via


BufferSize

Applies To: Windows 8, Windows 8.1

Describes the size of each buffer, in KB.

Element Hierarchy

<WindowsPerformanceRecorder>
     <Profiles>
          <SystemCollector>
               <BufferSize>

          <EventCollector>
               <BufferSize>

          <HeapEventCollector
               <BufferSize>

          <Profile>
               <Collectors>
                    <SystemCollectorId>
                         <BufferSize>

                    <EventCollectorId>
                         <BufferSize>

                    <HeapEventCollectorId>
                         <BufferSize>

Syntax

<BufferSize Operation = "Set" | "Add" | “Remove”
            Value     = unsignedLong>
</BufferSize>

Attributes and Elements

Attributes

Attribute Description Data type Required Default

Operation

Indicates whether elements should be set or added.

This attribute can have one of the following values:

  • Set

  • Add

  • Remove

No

Set

Value

Indicates the size of the buffers, in KB.

unsignedLong

Yes

Child Elements

None.

Parent Elements

Element Description

EventCollector

Represents an event collector.

EventCollectorId

Represents an event collector identifier.

HeapEventCollector

Represents a heap event collector.

HeapEventCollectorId

Represents a heap event collector identifier.

SystemCollector

Represents a system collector.

SystemCollectorId

Represents a system collector identifier.

Remarks

This element is used only for in-memory capture.

Example

The following code examples show how this element is used in system collector and event collector definitions.

<SystemCollector
  Id="WPRSystemCollector"
  Name="NT Kernel Logger"
  FileName="WPRKernel.etl">
  <BufferSize
    Value="512"/>
  <Buffers
    Value="3"
    PercentageOfTotalMemory="true"/>
</SystemCollector>

<EventCollector
  Id="WPREventCollector"
  Name="WPR Event Collector"
  FileName="somefilename.etl">
  <BufferSize
    Value="128"/>
  <Buffers
    Value="64"/>
</EventCollector>

See Also

Reference

Buffers
SystemCollector
EventCollector
HeapEventCollector

Other Resources

Elements