-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Geckoprofiler trace with Visual metrics enabled from Browsertime gets an error #3966
Comments
I believe this comes from the assumption that we'll always have all metrics. Indeed in this code we add all 3 types of metrics: profiler/src/profile-logic/tracks.js Lines 388 to 393 in b84f498
But in the profile you shared, we only have the first one profiler/src/selectors/profile.js Lines 173 to 180 in b84f498
This should be fairly easy to fix: we can check the presence for each values before adding the tracks. I don't know well browsertime and its options, can you please explain how we get these metrics, and is it common that we can have one but not the others? |
@soulgalore I fixed this specific issue in a local patch, but now I see another issue: the data itself for VisualProgress looks bad, as all Deploy preview with the fix: https://deploy-preview-3967--perf-html.netlify.app/ |
I wonder if these options would be added only using the mozilla script at https://github.com/mozilla/browsertime/blob/3329a2c1f5b60033917f7da0a5f8298432055e8c/vendor/visualmetrics.py#L1318-L1340 I'd be interested to know the difference (I mean: how to do each one of these) between the 2 options you mention in your issue description:
Thanks! |
@julienw thanks for the fix, I verified that it worked for me.
Thats seems wrong, maybe it copied the wrong? I never touched that code myself but I can have a look tonight and see if I can fix it.
Sorry let me explain that better. You can run Browsertime with and without recording a video of the screen (= there will not be any visual metrics). |
About Contentful Speed Index etc, that is turned off by default and you need to enable them, that's why they was not in my trace. |
Thanks, I think I managed to capture this in the new comments in ab64434#diff-e966a6863aad93f9d9faa8bc61f711a4afc9ec49d2dfbb8694482dd79ffbc5ac= |
Hi!
If I drag and drop a geckoProfile.json directly from Browsertime, it works fine, but if I enable visual metrics in Browsertime I get the following error:
I think there are some special handling of the visual metrics in the profiler but it seems to have stopped working.
I've added the file here: https://github.com/sitespeedio/browsertime/blob/geckoprofile/test/geckoProfile-1.json
The text was updated successfully, but these errors were encountered: