Closed
Bug 915730
Opened 12 years ago
Closed 12 years ago
Add responsiveness metrics to all Android tests with actions
Categories
(Testing Graveyard :: Eideticker, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: wlach, Assigned: wlach)
Details
Attachments
(2 files)
18.35 KB,
patch
|
gbrown
:
review+
|
Details | Diff | Splinter Review |
7.40 KB,
patch
|
gbrown
:
review+
|
Details | Diff | Splinter Review |
We can measure this for all existing Android tests, and it's just another small addition to the datapoint for each test.
This is a prelude to doing the same thing for FirefoxOS.
Assignee | ||
Comment 1•12 years ago
|
||
Various cleanup to make this possible/easier.
Attachment #804097 -
Flags: review?(gbrown)
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #804098 -
Flags: review?(gbrown)
![]() |
||
Updated•12 years ago
|
Attachment #804097 -
Flags: review?(gbrown) → review+
![]() |
||
Comment 3•12 years ago
|
||
Comment on attachment 804098 [details] [diff] [review]
The actual patch
Review of attachment 804098 [details] [diff] [review]:
-----------------------------------------------------------------
Looks great. I'm eager to see some initial results.
::: src/eideticker/eideticker/metrics.py
@@ +1,3 @@
> +import videocapture
> +
> +INPUT_RESPONSE_THRESHOLD = 10000
Why 10000? My naive instinct would be to use something smaller. Do you expect much noise (framediffs without an action, or independent of action)?
@@ +18,5 @@
> + if first_non_sleep_action:
> + framediffs = videocapture.get_framediff_sums(
> + capture, threshold=difference_threshold)
> + for (i, framediff) in enumerate(framediffs):
> + t = i/60.0
Is there an existing constant that could be used instead of "60.0"?
Attachment #804098 -
Flags: review?(gbrown) → review+
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Geoff Brown [:gbrown] from comment #3)
> ::: src/eideticker/eideticker/metrics.py
> @@ +1,3 @@
> > +import videocapture
> > +
> > +INPUT_RESPONSE_THRESHOLD = 10000
>
> Why 10000? My naive instinct would be to use something smaller. Do you
> expect much noise (framediffs without an action, or independent of action)?
I noticed some small variations before the real response in taskjs, but I agree 10000 is probably too high. Set it to 4096 for now -- we can always adjust later.
> @@ +18,5 @@
> > + if first_non_sleep_action:
> > + framediffs = videocapture.get_framediff_sums(
> > + capture, threshold=difference_threshold)
> > + for (i, framediff) in enumerate(framediffs):
> > + t = i/60.0
>
> Is there an existing constant that could be used instead of "60.0"?
We should probably make the fps a property of the capture. Changed that before committing.
Assignee | ||
Comment 5•12 years ago
|
||
Pushed:
https://github.com/mozilla/eideticker/commit/92f084a5dea830a2089cf1937944dd174e65c45e
https://github.com/mozilla/eideticker/commit/f9c0714c45fddc7aae3ac8690020795fb9af5fd2
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•