If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Consider exposing profiler helper output to adb logcat, ideally in a runtime configurable way

NEW
Unassigned

Status

()

Core
DOM: IndexedDB
3 years ago
3 years ago

People

(Reporter: asuth, Unassigned)

Tracking

Trunk
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments, 1 obsolete attachment)

(Reporter)

Description

3 years ago
Created attachment 8472018 [details]
example of neat log excerpts that are interesting

IndexedDB currently has some amazing profiler helpers that generate markers that get attached to sampled frames.  This is an amazing resource for investigating performance issues, although needing to rebuild Gecko to get to them is problematic.  It would be handy for the printf debugging and fancy logging crowds to be able to leverage this bounty of information as well.

I've attached some examples of what the ProfilerHelpers information looks like when directed to logcat.  Note that the Gaia email app's own logs are interleaved to show having all of that data interleaved is awesome.  (Note that the email app uses dump() for logging, not console.log() which is subject to timer-driven batching which will screw up the interleaving.)
(Reporter)

Comment 1

3 years ago
Created attachment 8472019 [details] [diff] [review]
Horrible hack patch to enable the helpers but send the data direct to logcat and break the profiler support

Not remotely suitable for consideration or landing, but useful for people to apply who want them some logcat.
(Reporter)

Comment 2

3 years ago
Created attachment 8472020 [details] [diff] [review]
Horrible hack patch to enable the helpers but send the data direct to logcat and break the profiler support

Whoops, that patch had graphics debugging stuff in it too.
Attachment #8472019 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.