Info
Version: | 3.1.18 |
Author(s): | Microsoft |
Last Update: | Thursday, December 12, 2024 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/Microsoft/perfview |
NuGet Url: | https://www.nuget.org/packages/Microsoft.Diagnostics.Tracing.TraceEvent |
Install
Install-Package Microsoft.Diagnostics.Tracing.TraceEvent
dotnet add package Microsoft.Diagnostics.Tracing.TraceEvent
paket add Microsoft.Diagnostics.Tracing.TraceEvent
Microsoft.Diagnostics.Tracing.TraceEvent Download (Unzip the "nupkg" after downloading)
Dependencies
.NETFramework 4.5
- System.Runtime.CompilerServices.Unsafe(>= 4.5.2)
- System.Runtime.CompilerServices.Unsafe(>= 4.5.2)
- System.Runtime.CompilerServices.Unsafe(>= 4.5.2)
Tags
You can also log ETW events yourself code using the System.Diagnostics.Tracing.EventSource class.
The TraceEvent library conains the classes needed to control ETW providers (including .NET EventSources)
and parse the events they emit.
The library includes
-- TraceEventSession which can enable ETW providers,
-- EtwTraceEventSource which lets you read the stream of ETW events, and
-- TraceLog which is is digested form of ETW events which include decoded stack traces associated with the events.
See https://github.com/Microsoft/perfview/blob/master/documentation/TraceEvent/TraceEventLibrary.md for more.