Closed Bug 842616 Opened 12 years ago Closed 12 years ago

Running make test-perf sometimes report measures multiple times

Categories

(Firefox OS Graveyard :: Gaia, defect)

x86
macOS
defect
Not set
normal

Tracking

(b2g18 fixed)

RESOLVED FIXED
Tracking Status
b2g18 --- fixed

People

(Reporter: rik, Assigned: rik)

References

Details

Attachments

(1 file)

This happens when we quit the tests before the end. We don't call unregisterLoadTimeListener which means we have multiple listeners when we run it again. We could solve this by rebooting before running performance tests: + Clean state for our measurements - Slows down the process Or we could also try to remove the listeners when we setup the tests. I'm not sure it will solve every case but we should try.
No longer blocks: 840137
Depends on: 840137
Attached patch Proposed patchSplinter Review
Finally, that was easy. :)
Assignee: nobody → anthony
Status: NEW → ASSIGNED
Attachment #716516 - Flags: review?(felash)
Comment on attachment 716516 [details] [diff] [review] Proposed patch Review of attachment 716516 [details] [diff] [review]: ----------------------------------------------------------------- r=me with the nit please file a bug about doing this measurement in a friendlier way, regarding the insertion into the global object. ::: tests/performance/performance_helper.js @@ +18,5 @@ > var registerListener = > 'var w = global.wrappedJSObject;' + > 'w.loadTimes = [];' + > + 'if (w.onapplicationloaded) {' + > + ' /* We\'ve been here before, let\'s clean ! */' + nit: You can put the comments outside of the string you know :)
Attachment #716516 - Flags: review?(felash) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment on attachment 716516 [details] [diff] [review] Proposed patch only changes are in the performance framework
Attachment #716516 - Flags: approval-gaia-v1?(21)
Comment on attachment 716516 [details] [diff] [review] Proposed patch a=tests
Attachment #716516 - Flags: approval-gaia-v1?(21) → approval-gaia-v1+
I was not able to uplift this bug to v1-train. If this bug has dependencies which are not marked in this bug, please comment on this bug. If this bug depends on patches that aren't approved for v1-train, we need to re-evaluate the approval. Otherwise, if this is just a merge conflict, you might be able to resolve it with: git checkout v1-train git cherry-pick -x 889a20d22a972932298c62b7aab4932dd577e245 <RESOLVE MERGE CONFLICTS> git commit
v1-train: 3429fd39e3f556b2ecea5ed72df49e8e4c6808ba
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: