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)
Tracking
(b2g18 fixed)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
b2g18 | --- | fixed |
People
(Reporter: rik, Assigned: rik)
References
Details
Attachments
(1 file)
1.27 KB,
patch
|
julienw
:
review+
vingtetun
:
approval-gaia-v1+
|
Details | Diff | Splinter Review |
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.
Updated•12 years ago
|
Updated•12 years ago
|
Blocks: gaia-perf-measure
Assignee | ||
Comment 1•12 years ago
|
||
Finally, that was easy. :)
Comment 2•12 years ago
|
||
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+
Assignee | ||
Comment 3•12 years ago
|
||
https://github.com/mozilla-b2g/gaia/commit/889a20d22a972932298c62b7aab4932dd577e245
Opened bug 844032 for the global object pollution.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 4•12 years ago
|
||
Comment on attachment 716516 [details] [diff] [review]
Proposed patch
only changes are in the performance framework
Attachment #716516 -
Flags: approval-gaia-v1?(21)
Comment 5•12 years ago
|
||
Comment on attachment 716516 [details] [diff] [review]
Proposed patch
a=tests
Attachment #716516 -
Flags: approval-gaia-v1?(21) → approval-gaia-v1+
Comment 6•12 years ago
|
||
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
Comment 7•12 years ago
|
||
v1-train: 3429fd39e3f556b2ecea5ed72df49e8e4c6808ba
status-b2g18:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•