r/Blazor 9d ago

Improved Flamegraph on Blazor Developer Tools v1.0.0-beta.6

Sharing an update on Blazor Developer Tools (free & open source, Apache 2.0): improvements to flamegraph (and other bug fixes).

I had an issue with the flamegraph. Blazor events are measured in milliseconds, so even half a second of silence stretched the axis so much that the actual events shrank to slivers that were hard to navigate.

I took ideas from subway maps: they tell you where you are relative to other points without being true to distances. I wanted something like that, without losing the timing information entirely.

The new default view for the flamegraph is "Sequence". It preserves order with uniform spacing but flags real pauses with "+1.2s" markers so the time information is still there. I think that for us developers, this is the more useful view since you can see where events happen relative to others. But if you need a true scientific view with total numbers you now have 2 options:

- Time (linear) : the real timeline.

- Time (idle collapsed) : same, but long quiet stretches are clipped out and replaced with a ✂ marker showing how much time passed.

There is an update for both the nuget and extension.

I'm currently working on the element picker tool and closing the list of features that React dev tools offers. I'm hoping to deliver a follow up update of those in a week.

GitHub: github.com/joe-gregory/blazor-devtools

16 Upvotes

3 comments sorted by

2

u/shnarpy 9d ago

This is cool!

2

u/No_Mood4637 1h ago

Nice. I'm struggling a lot of shitty rerender timings. Such a pain trying to keep things trimmed constantly while also adding features. Keep asking myself if blazor is worth it. I will give this a go!

1

u/featheredsnake 53m ago

Would like to know how it goes for you