Skip to content
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

Add warmup and step delay to developer UI #323

Merged
merged 12 commits into from
Feb 29, 2024

Conversation

camillobruni
Copy link
Contributor

Drive-by-fix:

  • Move the more frequently used iteration count to the top
  • Move warmupSuite and warmup-delay closer together

@camillobruni camillobruni added the trivial change A change that doesn't affect benchmark results label Oct 4, 2023
@camillobruni camillobruni requested a review from bgrins October 4, 2023 15:00
resources/developer-mode.mjs Outdated Show resolved Hide resolved
@camillobruni
Copy link
Contributor Author

Please have a look again.

@camillobruni camillobruni changed the title Add warmup and step delay to developper UI Add warmup and step delay to developer UI Nov 14, 2023
@camillobruni
Copy link
Contributor Author

Also updated the slider UI:
Screenshot 2023-11-24 at 18 26 06

@camillobruni camillobruni requested review from julienw and rniwa December 8, 2023 22:59
Copy link
Contributor

@julienw julienw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this seems to work perfectly fine!

Here are a few comments. Only the simple ones are mandatory, I'm leaving the ones that need more work for a future PR.

content.append(createUIForWarmupBeforeSync())
content.append(document.createElement("br"));
content.append(createUIForSyncStepDelay());
details.append(content);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

details.append(content) is already done below, so probably this line should be removed

resources/developer-mode.mjs Outdated Show resolved Hide resolved
range.value = initialValue;

const label = document.createElement("label");
const rangeLabel = document.createElement("span");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the name "label" can be confusing in this context, I believe it should be renamed, for example to rangeValueText?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if rangeLabel should be outside of the label element (it's not labeling the input), but this would need more CSS changes that we're willing to do here, I believe.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed the variable to rangeValueAndUnit, let's maybe move the rest for later.

resources/developer-mode.mjs Show resolved Hide resolved
};
return label;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we could factorize a bit more these UI creations, but I'm not sure this would actually be easier to read. So I'm fine with keeping them this way.

resources/developer-mode.mjs Outdated Show resolved Hide resolved
@rniwa
Copy link
Member

rniwa commented Feb 24, 2024

What's the status of this PR? Are we merging it for 3.0?

@camillobruni
Copy link
Contributor Author

I'd be happy to land this if possible, but only if everybody is fine with it :)

@rniwa
Copy link
Member

rniwa commented Feb 29, 2024

Let's land it for 3.0 then :)

@camillobruni camillobruni merged commit c901052 into WebKit:main Feb 29, 2024
4 checks passed
@camillobruni camillobruni deleted the 2023-10-04_delay_params branch February 29, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
trivial change A change that doesn't affect benchmark results v3-blocker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants