Closed Bug 837676 Opened 11 years ago Closed 10 years ago

[video] Implement new startup loading events

Categories

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

ARM
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED
2.0 S5 (4july)

People

(Reporter: julienw, Assigned: rnicoletti)

References

Details

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

Attachments

(1 file)

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 Video app, it should be triggered when the user can actually manipulate the app.

We should measure 2 runs (cold and warm) for this app: the first run will populate the internal DB, the second run will directly load the internal DB and should be faster.
No longer depends on: gaia-perf-measure
Summary: "ready to use" perf measurement → [video] "ready to use" perf measurement
Depends on: 837139
Keywords: perf
Whiteboard: [c=instrumentation p=]
Priority: -- → P2
Whiteboard: [c=instrumentation p=] → [c=automation p= s= u=]
Blocks: 996043
Bug 996038 introduces new events outlining the phases of application startup. Each of these 5 events needs to be implemented.
Summary: [video] "ready to use" perf measurement → [video] Implement new startup loading events
Adding to sprint4 for discussion during planning
Target Milestone: --- → 2.0 S4 (20june)
Assignee: nobody → dflanagan
As an FYI, this implementation needs to land in 2.0 as it is important for meeting release performance acceptance criteria.

https://wiki.mozilla.org/FirefoxOS/Performance/Release_Acceptance
Russ, please take this one. You can take a look at this one as an example impl. https://bugzilla.mozilla.org/show_bug.cgi?id=837674

Thanks
Hema
Assignee: dflanagan → rnicoletti
Target Milestone: 2.0 S4 (20june) → 2.0 S5 (4july)
Attachment #8447538 - Flags: review?(dflanagan) → review?(johu)
Comment on attachment 8447538 [details] [review]
Pull request: https://github.com/mozilla-b2g/gaia/pull/21134

It looks good.

Only one concern that we already have a variable called firstScanEnd which is set before all UI update. And we introduce another variable firstScanDone at this patch. Maybe, we can use local variable to keep the state and dispatch the event for it.
Attachment #8447538 - Flags: review?(johu) → review+
Thanks, John. I updated the PR to use firstScanEnded instead of introducing a new variable.

Master: https://github.com/mozilla-b2g/gaia/commit/7e3aa22cf947f30512e6124d32b594e151876640
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [c=automation p= s= u=] → [c=automation p= s=2014.07.04.t u=]
Russ, could you please have this uplifted to 2.0? See comment 3.
Flags: needinfo?(rnicoletti)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: