-
Notifications
You must be signed in to change notification settings - Fork 25
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
Proposal: Prettify console output using Spectre.Console #21
Comments
hi @ryandle, this looks great! as long as this library doesn't increase the resource usage of this tool by much I'm all for it. right now on windows the tool is taking up ~25mb in committed size, and the GC heap is committing < 3mb. there's a 4mb commit for Etw real time session, then there's at least 5mb for jitting some tracing methods like this (this commits ~70k and there are many of them) -
and the runtime needs memory to store type info; and I see things from yamldotnet for serialization like this one (for 200k):
if you could show me how much more memory this library uses it'd be great :) in general I see the CPU usage is basically 0 from the tool so hopefully that stays roughly the same by using this library. not trying to pick on this lib usage at all - it's just that as we pull in more libraries we need to start being conscious about the memory usage 'cause we don't want to have a tool that monitors memory but its own memory usage is unreasonably high 😂 I definitely love the result! this looks so much easier to read! |
Hey @Maoni0 - that makes sense! I ran GCRealTimeMon for ~1min with my new changes and watched the commit size. It ranged from 23-25k and after about a minute was at 24k. I'd be happy to collect before/after perfview traces too. Let me know what you think. Edit: let it keep running for a little over an hour, up to 27,600 K commit. Screenshot below is from the 1min mark. |
Hey @Maoni0, hope you are enjoying the holiday season. No rush to get to this, but I had a little spare time so I wanted to share an update. I've updated my branch to have the latest changes from main and now I'm running my local changes side-by-side with dotnet-gcmon v0.5.0. I launched both to monitor a local process that emitted ~120 events before I captured the below. Commit size seems comparable and CPU is basically 0 for both. I'd still need to do some cleanup of the code, but beyond that I'd be ready to open a pull request and get the next level of input from you. Let me know what you think! |
Merry Christmas @ryandle! thanks for doing the measurements! looking forward to seeing your PR :) |
I hacked together a prototype of what the console might look like if we used a library like Spectre.Console to markup the output:
The above styling is just to get the idea across.
Is there any interest in using Spectre.Console to beautify the output? Leaving out extra details to first see if there is even interest in this or if there are reasons to keep the output simpler.
The text was updated successfully, but these errors were encountered: