-
Notifications
You must be signed in to change notification settings - Fork 189
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
compare-perf: Add support for selecting a single run as input #3821
compare-perf: Add support for selecting a single run as input #3821
Conversation
8b2f378
to
98910a4
Compare
A very hacky implementation that simply instantiates an empty `PerformanceOverviewScanner` as the "from" column (i.e. with all values empty). To see it in action, select a single query run in the query history and pick "Compare Performance" from the context menu. Then select the "Single run" option when prompted.
98910a4
to
73a865d
Compare
<NumberHeader>{second != null && "After"}</NumberHeader> | ||
<NumberHeader> | ||
{first != null && second != null && "Delta"} | ||
</NumberHeader> | ||
{comparison && ( | ||
<NumberHeader> | ||
{first != null && | ||
second != null && | ||
(comparison ? "Delta" : "Value")} | ||
</NumberHeader> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we hide Delta
and do comparison ? "After" : "Value"
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it amounts to the same if it's only done in the header, it just looks weird 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually the check on comparison
is dead as it's inside another check for comparison
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops! You're completely right. Brain was on autopilot.
Looks great! 🚢 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment would be nice to fix but can be merged as is
works for me locally with hack to support external logs as well, that should be trial-by-fire enough |
Let's merge this before #3819 - I know the semantic conflicts that have to be addressed. |
I'll immediately do some cleanups to this once it is merged. I have the commits ready locally.. |
A very hacky implementation that simply instantiates an empty
PerformanceOverviewScanner
as the "from" column (i.e. with all values empty). To see it in action, select a single query run in the query history and pick "Compare Performance" from the context menu. Then select the "Single run" option when prompted.Second commit takes care of simplifying the view when not in comparison mode.