MegaBites-AI/Windows-powershell
0308
1<?xml version='1.0' encoding='utf-8' standalone='yes'?>2<WindowsPerformanceRecorder3 Author="PowerShell Performance"4 Comments="PowerShell Performance"5 Company="Microsoft Corporation"6 Copyright="Microsoft Corporation"7 Team="PowerShell Performance"8 Version="1.0"9 >10 <Profiles>11 <SystemCollector Id="SystemCollector">12 <!-- 1MB * 100 buffers = 100 MB -->13 <BufferSize Value="1024"/>14 <Buffers Value="100"/>15 </SystemCollector>16 17 <EventCollector Id="EventCollector" Name="EventCollector">18 <BufferSize Value="1024" />19 <Buffers Value="100" />20 </EventCollector>21 22 <SystemProvider Id="SystemProviderVerbose">23 <Keywords>24 <!-- CPU -->25 <Keyword Value="ProcessThread"/>26 <Keyword Value="Loader"/>27 <Keyword Value="Power"/>28 <Keyword Value="CSwitch"/>29 <Keyword Value="ReadyThread"/>30 <Keyword Value="SampledProfile"/>31 <Keyword Value="DPC"/>32 <Keyword Value="Interrupt"/>33 <Keyword Value="IdleStates"/>34 <Keyword Value="DiskIO"/>35 <Keyword Value="FileIO"/>36 </Keywords>37 <Stacks>38 <Stack Value="CSwitch"/>39 <Stack Value="ReadyThread"/>40 <Stack Value="SampledProfile"/>41 </Stacks>42 </SystemProvider>43 44 <EventProvider Id="Microsoft-Windows-PowerShell" Name="Microsoft-Windows-PowerShell"/>45 <EventProvider Id="Microsoft-PowerShell-Parser" Name="*Microsoft-PowerShell-Parser"/>46 <EventProvider Id="Microsoft-PowerShell-Runspaces" Name="*Microsoft-PowerShell-Runspaces"/>47 <EventProvider Id="Microsoft-PowerShell-CommandDiscovery" Name="*Microsoft-PowerShell-CommandDiscovery"/>48 <EventProvider Id="Microsoft-PowerShell-Telemetry" Name="*Microsoft-PowerShell-Telemetry"/>49 <EventProvider Id="Microsoft-Windows-DotNETRuntime" Name="e13c0d23-ccbc-4e12-931b-d9cc2eee27e4">50 <Keywords>51 <!--52 ###############53 ### Enabled ###54 ###############55 GC = 0x000000001 # Logging when garbage collections and finalization happen.56 Binder = 0x00000000457 Loader = 0x000000008 # Logging when modules actually get loaded and unloaded.58 Jit = 0x000000010 # Logging when Just in time (JIT) compilation occurs.59 NGen = 0x000000020 # Logging when precompiled native (NGEN) images are loaded.60 StopEnumeration = 0x000000080 # Indicates that on detach or process shutdown, a rundown of all existing methods should be done61 Security = 0x000000400 # Events associated with validating security restrictions.62 AppDomainResourceManagement = 0x000000800 # Events for logging resource consumption on an app-domain level granularity63 Contention = 0x000004000 # Log when lock contention occurs. (Monitor.Enters actually blocks)64 Exception = 0x000008000 # Log exception processing.65 Threading = 0x000010000 # Log events associated with the threadpool, and other threading events.66 JittedMethodILToNativeMap = 0x000020000 # Dump the native to IL mapping of any method that is JIT compiled. (V4.5 runtimes and above).67 OverrideAndSuppressNGenEvents = 0x000040000 # If enabled will suppress the rundown of NGEN events on V4.0 runtime (has no effect on Pre-V4.0 runtimes).68 Type = 0x000080000 # Enables the 'BulkType' event69 GCHeapSurvivalAndMovement = 0x000400000 # Enables events associate with object movement or survival with each GC.70 GCHeapAndTypeNames = 0x001000000 # Indicates that you want type names looked up and put into the events (not just meta-data tokens).71 Stack = 0x040000000 # Also log the stack trace of events for which this is valuable.72 ThreadTransfer = 0x080000000 # This allows tracing work item transfer events (thread pool enqueue/dequeue/ioenqueue/iodequeue/a.o.)73 Codesymbols = 0x400000000 # Events that will dump PDBs of dynamically generated assemblies to the ETW stream.74 75 76 ###################77 ### Not enabled ###78 ###################79 GCHandle = 0x000000002 # Events when GC handles are set or destroyed.80 StartEnumeration = 0x000000040 # Indicates that on attach or module load , a rundown of all existing methods should be done81 JitTracing = 0x000001000 # Logging of the internal workings of the Just In Time compiler. This is fairly verbose.82 Interop = 0x000002000 # Log information about code thunks that transition between managed and unmanaged code.83 GCHeapDump = 0x000100000 # Enables the events associated with dumping the GC heap84 /// Enables allocation sampling with the 'fast'. Sample to limit to 100 allocations per second per type.85 /// This is good for most detailed performance investigations. Note that this DOES update the allocation86 /// path to be slower and only works if the process start with this on.87 GCSampledObjectAllocationHigh = 0x00020000088 GCHeapCollect = 0x000800000 # Triggers a GC. Can pass a 64 bit value that will be logged with the GC Start event so you know which GC you actually triggered.89 PerfTrack = 0x02000000090 Debugger = 0x100000000 # .NET Debugger events91 Monitoring = 0x200000000 # Events intended for monitoring on an ongoing basis.92 93 /// Enables allocation sampling with the 'slow' rate, Sample to limit to 5 allocations per second per type.94 /// This is reasonable for monitoring. Note that this DOES update the allocation path to be slower95 /// and only works if the process start with this on.96 GCSampledObjectAllocationLow = 0x00200000097 /// Turns on capturing the stack and type of object allocation made by the .NET Runtime. This is only98 /// supported after V4.5.3 (Late 2014) This can be very verbose and you should seriously using GCSampledObjectAllocationHigh99 /// instead (and GCSampledObjectAllocationLow for production scenarios).100 GCAllObjectAllocation = GCSampledObjectAllocationHigh | GCSampledObjectAllocationLow,101 -->102 <Keyword Value="4C14FCCBD"/>103 </Keywords>104 </EventProvider>105 106 <Profile107 Id="PowerShellPerformance.Verbose.File"108 Name="PowerShellPerformance"109 Description="PowerShell Performance Trace"110 LoggingMode="File"111 DetailLevel="Verbose"112 >113 <ProblemCategories>114 <ProblemCategory Value="Computation"/>115 </ProblemCategories>116 <Collectors>117 <SystemCollectorId Value="SystemCollector">118 <SystemProviderId Value="SystemProviderVerbose"/>119 </SystemCollectorId>120 <EventCollectorId Value="EventCollector">121 <EventProviders>122 <EventProviderId Value="Microsoft-Windows-PowerShell" />123 <EventProviderId Value="Microsoft-PowerShell-Parser" />124 <EventProviderId Value="Microsoft-PowerShell-Runspaces" />125 <EventProviderId Value="Microsoft-PowerShell-CommandDiscovery" />126 <EventProviderId Value="Microsoft-PowerShell-Telemetry" />127 <EventProviderId Value="Microsoft-Windows-DotNETRuntime" />128 </EventProviders>129 </EventCollectorId>130 </Collectors>131 </Profile>132 </Profiles>133 <TraceMergeProperties>134 <TraceMergeProperty135 Id="TraceMerge_Default"136 Name="TraceMerge_Default"137 >138 <CustomEvents>139 <CustomEvent Value="ImageId"/>140 <CustomEvent Value="BuildInfo"/>141 <CustomEvent Value="VolumeMapping"/>142 <CustomEvent Value="EventMetadata"/>143 <CustomEvent Value="PerfTrackMetadata"/>144 <CustomEvent Value="WinSAT"/>145 </CustomEvents>146 </TraceMergeProperty>147 </TraceMergeProperties>148</WindowsPerformanceRecorder>149 150 