-
Notifications
You must be signed in to change notification settings - Fork 719
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
Viewing Events with multi-line event payload is not ideal #2158
Comments
I don't think that the dump event concept follows a standard, or at least I'm not aware of one here. At the same time, I think it's going to be very hard to change this as there are lots of parsers out there that already implement It sounds like the workflow you're employing is to open PerfView and do the export from there. I wonder if it might be worthwhile for you to create a TraceEvent-based application that pulls the events you care about and exports them as you'd like them. This would give you complete control of what things look like and would be relatively low-cost to produce. I bet your favorite LLM could probably produce it for you. :) Would that work for you? I think that would give you control over time as well when your needs change, and anyone can do this, so others that have different needs would be free to do the same thing. |
Thanks for the quick reply!
We don't really export much from PerfView. Maybe every now and then we use the Excel export. But very rarely. I mentioned it above because I tried it out and it didn't show us the new lines.... Writing an exporter would not work for us: We certainly love all the other features the event viewer gives us (Best: I know that most people don't use multi-line payload for (their) ETW event: Though, I still think there might be value in PerfView supporting this a bit better. Another idea: If I press CTRL+C on a cell in the event viewer and that event payload has at least one newline: Could we copy the event including the newlines? |
I would support having some better support for newlines. You're right that it's not super common, but you're definitely not the only one. I'd like to understand your workflow a bit better - do you tend to use PerfView directly, and specifically use the events viewer? There is precedent to add optional behavior to PerfView and control it through the Options menu on the main window. This could be something that we put there. Then you could turn it on once and the change would persist across runs of PerfView. |
We deploy a pretty large (5M LOC) Windows Forms app to our customers. It talks to their own locally running SQL DB. In addition, we often do not have access to the system. As you can guess: We have a lot of performance problems, and this is where PerfView comes into play: We start it at the customer and then we analyze them. Because of having our customer run the PerfView: We have added a lot of events over the years. Just so we can get to the bottom of the issue without a lot of pack and forth. It's great because we're very efficient in analyzing them. Nowadays even all logging (log4net) is in the PerfView trace. And of course, queries. And now: We often do CPU analysis. Often Thread time. Sometimes memory analysis. Sometimes deadlocks. Because we might have 20 processes running it's great to trace all of them at the same time and get a unified view of what's going on. A normal trace (30-60s) will have tens of thousands of our events that we need to make sense of. This is where a multi-line viewer would be really nice.
That would be perfekt. Would that mean we change the output of |
We have options here. I could imagine you might just want to support a multi-line event viewer. I think that changing the Dump format is not likely to work because it's exposed outside of TraceEvent and anyone that implements a parser can implement it themselves. TraceParserGen implements it to match what's in TraceEvent. What do you think about looking at supporting multiple lines in the event viewer? I can see others potentially wanting this as well. |
That would be fantastic. The "Stack viewer" has that "F2" ( I will likely have to find a student/intern to work on this so this might take a bit to get started (I have never done any WPF) |
Yeah, this sounds really nice!
Sounds great! I haven't done any WPF either :) |
Hi all,
We have accumulated more and more of our custom ETW events over the year (they're great!). For us the payload of the events can be quite large. We often dump multi-line strings as event payloads.
The are tough to display: The export to Excel/CSV/XML does't show them well
What we have used is "Dump Event": That works okay: The XML attributes break the line on newlines.
However: The XML attribute is XML-Escaped. E.g. here is part of an SQL explain that is one of our events:
This is very tough to read. We have to manually copy that and unescape to just read it.
Ideas:
CDATA
and avoid the escaping.Question:
ALT+SHIFT+D
?)?Any other ideas? I'd certainly be open to send a pull request.
Thanks for reading!
The text was updated successfully, but these errors were encountered: