Skip to content

Commit

Permalink
Add C# version of IdentifyChromeProcesses.py
Browse files Browse the repository at this point in the history
Microsoft has released a trace processing package that can be used to
analyze ETW traces using .Net. This C# program uses that to implement
IdentifyChromeProcesses in C#. In some ways this cleans up the code
and the behavior (some inconsistencies and bugs in the python script
were already made) and in some ways it is messier because more of the
work is done by the script instead of by xperf actions.

Using C# and trace processing package avoids a dependency on xperf
and wpaexporter. It also avoids uncertainty about what filename
wpaexporter will use for its results - this has changed once in the
past. It also means that traces with missing events can be fully
processes - wpaexporter can't do that.

On the downside, it means that processing some traces causes
out-of-memory failures, and there are a few inconsistencies in odd
cases.
  • Loading branch information
randomascii committed Jul 16, 2019
1 parent 050376c commit 772147a
Show file tree
Hide file tree
Showing 6 changed files with 595 additions and 0 deletions.
6 changes: 6 additions & 0 deletions TraceProcessors/IdentifyChromeProcesses/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
Loading

0 comments on commit 772147a

Please sign in to comment.