Ayende @ Rahien

Refunds available at head office

The Profiler New Features: Starring & Renaming

An interesting thing happened recently, when I started to build the profiler, a lot of the features were what I call Core Features. Those were the things that without which, we wouldn’t have a product. Things like detecting SQL, merging it into sessions, providing reports, etc. What I find myself doing recently with the profiler is not so much building Core Features, but building UX features. In other words, now that we have this in place, let us see how we can make better use of this.

Case in point, the new features that were just released in build 713. They aren’t big, but they are there to improve how people are commonly using the products.

Renaming a session:

image

This is primarily useful if you are in a long profiling session and you want to mark a specific session with some notation:

image

Small feature, and individually not very useful. But you might have noticed that the sessions are marked with stars around them. They weren’t there is previous builds, so what are they?

image

They are a way to tell the profiler that you really like those sessions :-)

More to the point, such sessions will not be removed when you clear the current state. That lets you keep around the previous state of the application as a base line while you work to improve it. Beside, it makes it much easier to locate them visually.

And finally, as a quicker way to do that, you can just ask the profiler to clear all but the selected features.

image

Not big features, but nice ones, I think.

Comments

Rob
08/26/2010 02:09 PM by
Rob

How hard/easy was it for you to build those features on top of what was there? Did it make sense how to add them?

Christopher Bennage
08/26/2010 02:26 PM by
Christopher Bennage

Hmm, maybe we should have a Clear All Sessions (except Starred).

Ayende Rahien
08/26/2010 02:33 PM by
Ayende Rahien

Rob,

Look at the code :-)

It was pretty easy, all told.

The hardest part was actually the UI for the rename feature.

I do lousy UI, so I just brute forced it for now.

Ayende Rahien
08/26/2010 02:33 PM by
Ayende Rahien

Christopher,

Nope, that is what Clear means now

Christopher Bennage
08/26/2010 02:36 PM by
Christopher Bennage

Ooops. I see that I missed that in the post. I need to read more carefully. ;-)

Alex Vilela
08/26/2010 03:06 PM by
Alex Vilela

Very useful.

It's been some time since I last used the Profiler and I'm not aware of the latest features. Anyway, well done.

Is it possible to compare two sessions? I actually mean something like SSMS where you can compare the execution plan of two queries?

I don't expect the same output, but maybe something like 'Session 1 run 30% less queries then session 2' or was quicker, or something like that?

Ayende Rahien
08/26/2010 03:09 PM by
Ayende Rahien

Alex,

Yes, we have the ability to diff sessions

Mike Scott
08/26/2010 03:38 PM by
Mike Scott

Nice feature, but there's conventional icon for this - a pin, not a star - to allow you to pin the sessions that you want to keep. Suggest you use that instead.

MIchael Chandler
08/26/2010 11:13 PM by
MIchael Chandler

What Mike Scott said. Nice feature, but a pin is more obvious than a star.

Jason
08/27/2010 02:11 PM by
Jason

I'd also agree that the pin is more appropriate for the function (great feature btw).

Dan Plaskon
08/27/2010 03:49 PM by
Dan Plaskon

Would be nice if there was a way to clear ALL sessions (even the starred one)...or am I missing something obvious?

Comments have been closed on this topic.