Closed
Bug 979457
Opened 11 years ago
Closed 11 years ago
[camera] "ready to use" perf measurement
Categories
(Firefox OS Graveyard :: Gaia::Camera, defect, P2)
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.
Reporter | ||
Comment 1•11 years ago
|
||
Also we need to address bug 971771 first.
Blocks: gaia-perf-measure
Depends on: 971771
Reporter | ||
Comment 2•11 years ago
|
||
See the original pull request: https://github.com/mozilla-b2g/gaia/pull/10142/files
Updated•11 years ago
|
Priority: -- → P2
Comment 3•11 years ago
|
||
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.
Comment 4•11 years ago
|
||
(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.
Assignee | ||
Comment 5•11 years ago
|
||
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)
Assignee | ||
Comment 6•11 years ago
|
||
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'?
Assignee | ||
Comment 7•11 years ago
|
||
Attachment #8422531 -
Flags: review?(hub)
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(hub)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → wilsonpage
Reporter | ||
Comment 8•11 years ago
|
||
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-
Reporter | ||
Comment 9•11 years ago
|
||
Also bug 971771 needs to be fixed first as camera is on the blacklist.
Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 8422531 [details] [review]
pull-request (master)
- Changed all references to `PerformanceTestingHelper`
- Added 'camera' to whitelist
Attachment #8422531 -
Flags: review- → review?(hub)
Reporter | ||
Comment 11•11 years ago
|
||
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+
Assignee | ||
Comment 12•11 years ago
|
||
Landed on 'master' https://github.com/mozilla-b2g/gaia/commit/d7ee97864bf2779207b19868bc08012724e75463
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Target Milestone: --- → 2.0 S2 (23may)
You need to log in
before you can comment on or make changes to this bug.
Description
•