Closed Bug 706251 Opened 9 years ago Closed 8 years ago

Need an api to analyze paint performance for native fennec

Categories

(Firefox for Android :: General, defect)

All
Android
defect
Not set

Tracking

()

RESOLVED FIXED

People

(Reporter: jrmuizel, Assigned: kats)

Details

Attachments

(1 file)

We'll want to do so something similar to bug 696398. Because Gecko doesn't know about the painting we're doing, this will need to be implemented entirely in the Java frontend.

The API looks like this:

void startFrameTimeRecording();
List<float> stopFrameTimeRecording();

It might not be the best place, but we can probably get the endtime for a frame at the end of LayerRenderer::onDrawFrame()

I'm not sure how tpan etc. are going to be implemented, but it might also be necessary to expose the java api to javascript.
Taking this as per previous discussion with blassey. Doesn't sound too complicated to implement in the Java UI. There might be some interaction with bug 705171 as well.
Assignee: nobody → kgupta
Not sure who to get to review this. Also not sure if we need this exposed to JS - jmaher said on IRC he wasn't sure yet. I can expose to JS with a separate patch if needed.
Attachment #578338 - Flags: review?(blassey.bugs)
Attachment #578338 - Flags: review?(blassey.bugs) → review+
Depends on: 696398
No longer depends on: 696398
OS: Mac OS X → Android
Hardware: x86 → All
https://hg.mozilla.org/mozilla-central/rev/aa1ecf20a348
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.