Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reviving WpfTraceEventParser #554

Closed
heeko opened this issue Feb 6, 2018 · 2 comments
Closed

Reviving WpfTraceEventParser #554

heeko opened this issue Feb 6, 2018 · 2 comments
Labels

Comments

@heeko
Copy link
Contributor

heeko commented Feb 6, 2018

I'm currently working on consuming ETW events from WPF. In the repository we can find some traces of a "deactivated" WpfTraceEventParser: TraceLog.cs.
I suppose it was used back in the days in the WPF performance suite. Is there any plan to revive this parser?

@vancem
Copy link
Contributor

vancem commented Feb 9, 2018

I did not realize until just now that WPF does not register its Events by default (you have to explicitly register them). You can do this by running the following from an admin prompt.

wevtutil im C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\wpf-etw.man

At this point you can use the name Microsoft-Windows-WPF to turn on WPF events like this

PerfView /Providers=Microsoft-Windows-WPF collect

And perfView (via the RegisterTraceEventParser) will correctly parse the events.


As with any ETW provider, if you find that you are processing MANY such events, and/or you want compile time support for fetching fields etc, you can make a parser of your own.

That is what the TraceParserGen tool does (when you build this repository you build TraceParserGen). See #336 for more on doing that.


Finally to answer your direct question, there are not plans to revive the WPF parser in the TraceEvent library. We cleaned out 'little used' parsers from the library on premise that users who needed them could use TraceParserGen to generate them themselves.

@vancem vancem closed this as completed Feb 9, 2018
@heeko
Copy link
Contributor Author

heeko commented Feb 9, 2018

Thanks a lot for the detailed answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants