Closed Bug 979457 Opened 10 years ago Closed 10 years ago

[camera] "ready to use" perf measurement

Categories

(Firefox OS Graveyard :: Gaia::Camera, defect, P2)

ARM
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED
2.0 S2 (23may)

People

(Reporter: hub, Assigned: wilsonpage)

References

Details

(Keywords: perf, Whiteboard: [c=automation p= s= u=])

Attachments

(1 file)

Apparently all the work from bug 837672 is gone. We need to redo it.
Also we need to address bug 971771 first.
Depends on: 971771
Keywords: perf
Whiteboard: [c=automation p= s= u=]
See the original pull request: https://github.com/mozilla-b2g/gaia/pull/10142/files
Priority: -- → P2
Adding description from original bug 837672 referenced in comment 0:

We need to measure when the app is usable by the user. For that we'll need to send an event (the moment is specific to the app) to |window| that the performance test will be able to receive.

The event name can be "x-moz-perf-user-ready" amongst all apps so that the performance test can be similar.

For the Camera, it should be triggered when a camera preview is displayed.
(In reply to Mike Lee [:mlee] from comment #3)
> 
> For the Camera, it should be triggered when a camera preview is displayed.

Since the preview being ready is a pre-condition for enabling the controls in the UI, it's probably better to post this event when the UI is ready.
We have an app event now called 'criticalpathdone'. You can hook in some perf hooks like:

app.once('criticalpathdone', perfCallback);

Do you want me to implement this?
Flags: needinfo?(hub)
We have an app event now called 'criticalpathdone'. You can hook in some perf hooks like:

app.once('criticalpathdone', perfCallback);

I can re-implement this into the new camera architecture. Do you need all the same calls from this initial pull-request, or just 'startup-path-done'?
Attached file pull-request (master)
Attachment #8422531 - Flags: review?(hub)
Flags: needinfo?(hub)
Assignee: nobody → wilsonpage
Comment on attachment 8422531 [details] [review]
pull-request (master)

Sorry for the delay. This patch needs a bit more work. As I said on github:

It won't run for the simple reason that you need to whitelist camera in tests/performance/startup_events_test.js.
Attachment #8422531 - Flags: review?(hub) → review-
Also bug 971771 needs to be fixed first as camera is on the blacklist.
Comment on attachment 8422531 [details] [review]
pull-request (master)

- Changed all references to `PerformanceTestingHelper`
- Added 'camera' to whitelist
Attachment #8422531 - Flags: review- → review?(hub)
Comment on attachment 8422531 [details] [review]
pull-request (master)

Now that bug 971771 has landed, this also works. 

Thanks !
Attachment #8422531 - Flags: review?(hub) → review+
Landed on 'master' https://github.com/mozilla-b2g/gaia/commit/d7ee97864bf2779207b19868bc08012724e75463
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Blocks: 996043
Target Milestone: --- → 2.0 S2 (23may)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: