Microsoft.Diagnostics.Tracing.TraceEvent 1.0.41

************* Welcome to the Microsoft.Diagnostics.Tracing.TraceEvent library! ***************

This library is designed to make controlling and parsing Event Tracing for Windows (ETW) events easy.
In particular if you are generating events with System.Diagnostics.Tracing.EventSource, this library makes it easy to process that data.

******** PROGRAMMERS GUIDE ********

If you are new to TraceEvent, see the _TraceEventProgammersGuide.docx that was installed as part of your solution when this NuGet package was installed.

************ FEEDBACK *************

If you have problems, wish to report a bug, or have a suggestion please log your comments on the .NET Runtime Framework Blog http://blogs.msdn.com/b/dotnet/ under the TraceEvent announcement.

********** RELEASE NOTES ***********

If you are interested what particular features/bug fixes are in this particular version please see the TraceEvent.RelaseNotes.txt file that is part of this package. It also contains information about breaking changes (If you use the bcl.codeplex version in the past).

************* SAMPLES *************

There is a companion NUGET package called Microsoft.Diagnostics.Tracing.TraceEvent.Samples. These are simple but well commented examples of how to use this library. To get the samples, it is best to simply create a new Console application, and then reference the Samples package from that App.
The package's README.TXT file tell you how to run the samples.

************** BLOGS **************

See http://blogs.msdn.com/b/vancem/archive/tags/traceevent/ for useful blog entries on using this package.

*********** QUICK STARTS ***********

The quick-starts below will get you going in a minimum of typing, but please see the WELL COMMENTED samples in the Samples NUGET package that describe important background and other common scenarios.


******* Quick Start: Turning on the 'MyEventSource' EventSource and log to MyEventsFile.etl:

using (var session = new TraceEventSession("SimpleMontitorSession", "MyEventsFile.etl"))     // Sessions collect and control event providers.  Here we send data to a file
{
    var eventSourceGuid = TraceEventProviders.GetEventSourceGuidFromName("MyEventSource");   // Get the unique ID for the eventSouce. 
    session.EnableProvider(eventSourceGuid);                                                 // Turn it on. 
    Thread.Sleep(10000);                                                                     // Collect for 10 seconds then stop.                  
}

******** Quick Start: Reading MyEventsFile.etl file and printing the events.

using (var source = new ETWTraceEventSource("MyEtlFile.etl"))            // Open the file
{
    var parser = new DynamicTraceEventParser(source);                    // DynamicTraceEventParser knows about EventSourceEvents
    parser.All += delegate(TraceEvent data)                              // Set up a callback for every event that prints the event
    {
        Console.WriteLine("GOT EVENT: " + data.ToString());              // Print the event.  
    };
    source.Process();                                                    // Read the file, processing the callbacks.  
}                                                                        // Close the file.  

******** Quick Start: Turning on the 'MyEventSource', get callbacks in real time (no files involved).

using (var session = new TraceEventSession("MyRealTimeSession"))         // Create a session to listen for events
{
    session.Source.Dynamic.All += delegate(TraceEvent data)              // Set Source (stream of events) from session.  
    {                                                                    // Get dynamic parser (knows about EventSources) 
                                                                         // Subscribe to all EventSource events
        Console.WriteLine("GOT Event " + data);                          // Print each message as it comes in 
    };

    var eventSourceGuid = TraceEventProviders.GetEventSourceGuidFromName("MyEventSource"); // Get the unique ID for the eventSouce. 
    session.EnableProvider(eventSourceGuid);                                               // Enable MyEventSource.
    session.Source.Process();                                                              // Wait for incoming events (forever).  
}

Showing the top 20 packages that depend on Microsoft.Diagnostics.Tracing.TraceEvent.

Packages Downloads
BenchmarkDotNet
Powerful .NET library for benchmarking
31
BenchmarkDotNet
Powerful .NET library for benchmarking
33
BenchmarkDotNet
Powerful .NET library for benchmarking
37
BenchmarkDotNet.Diagnostics.Windows
Powerful .NET library for benchmarking (Diagnostic Tools for Windows)
27
BenchmarkDotNet.Diagnostics.Windows
Powerful .NET library for benchmarking (Diagnostic Tools for Windows)
28
BenchmarkDotNet.Diagnostics.Windows
Powerful .NET library for benchmarking (Diagnostic Tools for Windows)
29
BenchmarkDotNet.Diagnostics.Windows
Powerful .NET library for benchmarking (Diagnostic Tools for Windows)
30
BenchmarkDotNet.Diagnostics.Windows
Powerful .NET library for benchmarking (Diagnostic Tools for Windows)
31
BenchmarkDotNet.Diagnostics.Windows
Powerful .NET library for benchmarking (Diagnostic Tools for Windows)
32
BenchmarkDotNet.Diagnostics.Windows
Powerful .NET library for benchmarking (Diagnostic Tools for Windows)
34

Version 1.0.40 - More fixes for self-describing events, many improvments on starts-stop and activity computer. Version 1.0.39 - Fixes for self-describing events, more win10 fixes Version 1.0.38 - Fixes for self-describing event decoding. (Zack Newman) Version 1.0.37 - Fixed problem with merging on Win10 Version 1.0.36 - Fixed issue decoding IPV6 fields in payloads. Version 1.0.35 - DynamicTraceEventParser decodes SelfDescribing Events - Added CaptureStateOnSetFileName functionality for multi-file traces, - Added GetActiveSession() to test if a session exists (mostly for discoverability) - Added UTCOffsetMinutes so you know the time zone where the data was collected - Added support for two-level PDB symbol server layout. Version 1.0.32 - Fix release notes Version 1.0.31 - Fix bug in Merge operation introduced in 1.0.30 Version 1.0.30 - Added Support for bitfields/enums for OS registered providers (previously only for EventSources). Fixed timestamp issues with real time providers that run when daylight savings time occurs (TimeStampRelMSec works). Version 1.0.29 - fixed bugs associated with parsing payloads with arrays using the EventSource self-describing format.

This package has no dependencies.

Version Downloads Last updated
3.1.23 1 07/21/2025
3.1.22 6 06/09/2025
3.1.21 7 05/08/2025
3.1.20 9 04/16/2025
3.1.19 14 02/07/2025
3.1.18 11 01/07/2025
3.1.17 12 11/19/2024
3.1.16 12 10/17/2024
3.1.15 13 08/30/2024
3.1.14 22 09/07/2024
3.1.13 15 07/18/2024
3.1.12 13 06/26/2024
3.1.11 18 06/26/2024
3.1.10 23 05/13/2024
3.1.9 25 03/12/2024
3.1.8 31 02/11/2024
3.1.7 32 02/11/2024
3.1.6 24 02/11/2024
3.1.5 26 02/11/2024
3.1.4 23 02/11/2024
3.1.3 15 02/11/2024
3.1.2 15 02/11/2024
3.1.1 38 02/11/2024
3.1.0 17 02/11/2024
3.0.8 34 02/11/2024
3.0.7 15 02/11/2024
3.0.6 38 02/11/2024
3.0.5 23 02/11/2024
3.0.4 38 02/11/2024
3.0.3 22 02/11/2024
3.0.2 16 02/11/2024
3.0.1 16 02/11/2024
3.0.0 26 02/11/2024
3.0.0-preview2 15 02/11/2024
3.0.0-preview1 15 02/11/2024
2.0.77 23 02/11/2024
2.0.76 20 02/11/2024
2.0.75 25 02/11/2024
2.0.74 24 02/11/2024
2.0.73 23 02/11/2024
2.0.72 22 02/11/2024
2.0.71 26 02/11/2024
2.0.70 24 02/11/2024
2.0.69 27 02/11/2024
2.0.68 24 02/11/2024
2.0.67 21 02/11/2024
2.0.66 21 02/11/2024
2.0.65 27 02/11/2024
2.0.64 33 02/11/2024
2.0.62 22 02/11/2024
2.0.61 32 02/11/2024
2.0.60 23 02/11/2024
2.0.59 26 02/11/2024
2.0.58 14 02/11/2024
2.0.57 21 02/11/2024
2.0.56 25 02/11/2024
2.0.55 15 02/11/2024
2.0.54 17 02/11/2024
2.0.52 28 02/11/2024
2.0.51 40 02/11/2024
2.0.50 15 02/11/2024
2.0.49 18 04/11/2020
2.0.48 26 02/11/2024
2.0.47 24 02/11/2024
2.0.46 24 02/11/2024
2.0.45 25 02/11/2024
2.0.44 21 02/11/2024
2.0.43 31 02/11/2024
2.0.42 24 02/11/2024
2.0.41 26 02/11/2024
2.0.40 24 02/11/2024
2.0.39 25 02/11/2024
2.0.38 25 02/11/2024
2.0.36 15 02/11/2024
2.0.34 24 02/11/2024
2.0.33 34 02/11/2024
2.0.32 16 02/11/2024
2.0.31 16 02/11/2024
2.0.30 35 02/11/2024
2.0.29 26 02/11/2024
2.0.26 18 02/11/2024
2.0.25 28 02/11/2024
2.0.23 37 02/11/2024
2.0.22 32 02/11/2024
2.0.19 24 02/11/2024
2.0.11 27 02/11/2024
2.0.10 23 02/11/2024
2.0.6 36 02/11/2024
2.0.5 35 02/11/2024
2.0.4 33 02/11/2024
2.0.3 19 02/11/2024
2.0.2 24 02/11/2024
1.0.41 20 02/10/2020
1.0.40 24 02/11/2024
1.0.39 18 02/11/2024
1.0.38 22 02/11/2024
1.0.35 28 02/11/2024
1.0.32 29 02/11/2024
1.0.31 25 02/11/2024
1.0.30 15 02/11/2024
1.0.29 35 02/11/2024
1.0.28 24 02/11/2024
1.0.26 33 02/11/2024
1.0.25 21 03/13/2024
1.0.24 21 02/11/2024
1.0.23 33 02/11/2024
1.0.21 37 02/11/2024
1.0.20 40 02/11/2024
1.0.16 34 02/11/2024
1.0.15 32 02/11/2024
1.0.13 25 02/11/2024
1.0.12 23 02/11/2024
1.0.11 23 02/11/2024
1.0.10 16 02/11/2024
1.0.5 34 02/11/2024
1.0.4 23 02/11/2024
1.0.3 24 02/11/2024
1.0.2-rc 24 02/11/2024
1.0.1-beta 25 02/11/2024