mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Auto merge of #24132 - asajeffrey:perf-updated-userscript, r=jdm
Updated performance userscript for new perf API <!-- Please describe your changes on the following line: --> Updated the userscript in etc/ci/performance for the new perf API. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because this is used when running perf measurements <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24132) <!-- Reviewable:end -->
This commit is contained in:
commit
6cc39ff443
1 changed files with 8 additions and 21 deletions
|
@ -13,27 +13,14 @@ function printPerfTiming() {
|
|||
print("[PERF] perf block start")
|
||||
formatLine("testcase", window.location);
|
||||
formatLine("title", document.title.replace(/,/g, ","));
|
||||
formatLine("navigationStart", performance.timing.navigationStart);
|
||||
formatLine("unloadEventStart", performance.timing.unloadEventStart);
|
||||
formatLine("unloadEventEnd", performance.timing.unloadEventEnd);
|
||||
formatLine("redirectStart", performance.timing.redirectStart);
|
||||
formatLine("redirectEnd", performance.timing.redirectEnd);
|
||||
formatLine("fetchStart", performance.timing.fetchStart);
|
||||
formatLine("domainLookupStart", performance.timing.domainLookupStart);
|
||||
formatLine("domainLookupEnd", performance.timing.domainLookupEnd);
|
||||
formatLine("connectStart", performance.timing.connectStart);
|
||||
formatLine("connectEnd", performance.timing.connectEnd);
|
||||
formatLine("secureConnectionStart", performance.timing.secureConnectionStart);
|
||||
formatLine("requestStart", performance.timing.requestStart);
|
||||
formatLine("responseStart", performance.timing.responseStart);
|
||||
formatLine("responseEnd", performance.timing.responseEnd);
|
||||
formatLine("domLoading", performance.timing.domLoading);
|
||||
formatLine("domInteractive", performance.timing.domInteractive);
|
||||
formatLine("domContentLoadedEventStart", performance.timing.domContentLoadedEventStart);
|
||||
formatLine("domContentLoadedEventEnd", performance.timing.domContentLoadedEventEnd);
|
||||
formatLine("domComplete", performance.timing.domComplete);
|
||||
formatLine("loadEventStart", performance.timing.loadEventStart);
|
||||
formatLine("loadEventEnd", performance.timing.loadEventEnd);
|
||||
var entries = performance.getEntriesByName(window.location);
|
||||
for (entry in entries) {
|
||||
for (key in entries[entry]) {
|
||||
if (typeof entries[entry][key] === "number") {
|
||||
formatLine(key, entries[entry][key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
print("[PERF] perf block end")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue