Skip to content

Commit

Permalink
Merge pull request #1609 from brianrob/issue-1591
Browse files Browse the repository at this point in the history
Ignore the Microsoft-Windows-DotNETRuntime Dynamic Manifest
  • Loading branch information
brianrob authored Apr 7, 2022
2 parents eae6cf7 + f2a8b1a commit f570067
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/TraceEvent/DynamicTraceEventParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,14 @@ private bool CheckForDynamicManifest(TraceEvent data)
return false;
}

// Starting with .NET 6, the manifest is written into the event stream, which results in
// duplicate event dispatch. To avoid this, filter out the Microsoft-Windows-DotNETRuntime provider
// if it is present in the event stream.
if (data.ProviderGuid == ClrTraceEventParser.ProviderGuid)
{
return false;
}

// Look up our information.
List<PartialManifestInfo> partialManifestsForGuid;
if (!partialManifests.TryGetValue(data.ProviderGuid, out partialManifestsForGuid))
Expand Down

0 comments on commit f570067

Please sign in to comment.