Le 11/04/2025 à 18:51, Nick Alexander a écrit :
On Thu, Apr 10, 2025 at 3:16 AM 'Julien Wajsberg' via
firefox-...@mozilla.org <firefox-...@mozilla.org> wrote:
Hey folks,
Yesterday Bug 1803607 [1] landed. What this brings is a new way to
control the Firefox Profiler on Android, *and* a new way to
capture MOZ_LOGs on Android.
All this in just one interface, that you may already know and use
on desktop.
Follow these simple steps:
1. Open a tab, and go to /about:logging./
2. Select a suitable preset depending on your use case. This
preset will define appropriate log modules as well as the
right set of profiler options and captured threads for this
use case.
3. Start logging with the button at the top.
4. Stop logging with the same button.
After stopping, you'll be given the choice to either save the
profile to a local file, or upload the profile to the common storage.
Julien and team -- this is great!
Thanks!
Can I ask 2 follow-up questions?
1. Can we connect `MOZ_LOG` and `adb logcat` together at some level
so that we can use this mechanism to get logcat logs from users? This
has historically been hard but could be a big win if possible.
I've been told that unfortunately it's not possible currently, for
android security reasons.
2. How does `about:logging` interact with startup profiling? That's
a focus for the mobile and perf teams. Could we arrange for
`about:logging` to be the/an entrypoint to startup profiling?
Interestingly I did something like that in about:profiling
<https://bugzilla.mozilla.org/show_bug.cgi?id=1625546> very recently,
but it's not exposed in about:logging. This uses this bit of code
<https://searchfox.org/mozilla-central/rev/4d00b50c42a788c51ac4c5fe92b684569ba6c3a5/devtools/client/performance-new/shared/browser.js#149-157>
to restart the browser, but I don't know if the same code would work on
Android too. If somebody here knows, please tell me!
Best,
--
Julien
--
You received this message because you are subscribed to the Google Groups
"dev-platform@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dev-platform+unsubscr...@mozilla.org.
To view this discussion visit
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/a36626e7-d83e-465e-a095-669b6c936769%40mozilla.com.