sitespeedio / browsertime

Measure and Optimize Web Performance
https://www.sitespeed.io/documentation/browsertime/
Apache License 2.0
610 stars 137 forks source link

firefox.collectMozLog does not work on Android #2127

Open acreskeyMoz opened 6 months ago

acreskeyMoz commented 6 months ago

Have you read the documentation?

URL

No website

What are you trying to accomplish

Collecting moz_logs is very helpful for Firefox performance engineers.

As far as I can tell, firefox.collectMozLog does not copy the generated log file when running on Firefox for Android.

See usage: https://github.com/search?q=repo%3Asitespeedio%2Fbrowsertime%20collectMozLog&type=code

What browser did you use?

Firefox

How to reproduce

Run a gecko application on Android (e.g. geckoview_example) and pass in the arguments, `--firefox.collectMozLog --firefox.setMozLog="timestamp,nsHttp:5"`

Expected outcome:
The moz_log.txt files are copied back along with other artifacts like performance profiles

Actual outcome:
No moz_log.txt files are copied back.

Log output

No response

soulgalore commented 6 months ago

Hi @acreskeyMoz , do you know where the log file ends up? Do geckodriver pass on process.env.MOZ_LOG_FILE so the actual directory should then be on the phone?

acreskeyMoz commented 6 months ago

Hi, @soulgalore, that's a good question. But even if geckodriver doesn't pass that along, we could come up with a good default. Let me try a couple of things, maybe I can get this working and put up a patch.