microsoft / perfview

PerfView is a CPU and memory performance-analysis tool
http://channel9.msdn.com/Series/PerfView-Tutorial
MIT License
4.18k stars 710 forks source link

Not getting TraceMessages on custom parser #394

Open andlommy opened 7 years ago

andlommy commented 7 years ago

Defined custom parser, using TraceParserGen Instantiated the parser MSLSATraceTraceEventParser lsa = new MSLSATraceTraceEventParser(session.Source); lsa.LookupSidsStart += Lsa_LookupSidsStart; Lsa_LookupSidsStart never gets fired, however this, however session.Source.AllEvents += Source_AllEvents; gets fired for the same event.

In the schema events have evengGUIDs defined, that are not reflected in the classes When event is fired, ProviderGUID is 0, opcode is what is seen as mofValue in the schema

Tracing into the TraceEvent.cs, i see that in Lookup function EventHeader.ProviderID is the EventGUID from the schema.

Seems because of that the events do not get matched with registered templates. Any idea what can be done to get this to work?

brianrob commented 5 years ago

@andlommy, I realize that this is a fairly old issue, but if this is still broken, can you please share the trace file and source code that you used to reproduce this?