Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Issue 2713043003: Fix the task overlap check in maxExpectedQueueingTimeInSlidingWindow. (Closed)

Created:
3 years, 10 months ago by ulan
Modified:
3 years, 10 months ago
CC:
catapult-reviews_chromium.org, tracing-review_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Fix the task overlap check in maxExpectedQueueingTimeInSlidingWindow. The maxExpectedQueueingTimeInSlidingWindow function throws an exception if the tasks provided to at as arguments overlap. Due to floating-point precision errors the test for overlap can produce false positive results. We used Number.EPSILON (~2e-16) to account for precision errors when comparing the task endpoints, but the epsilon turned out to be too small. This patch bumps up the epsilon to 1e-3. BUG=chromium:625701 # Review-Url: https://codereview.chromium.org/2713043003 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/877b7469adc4b2994454cffbfc21a38454f76235

Patch Set 1 #

Patch Set 2 : Add tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -5 lines) Patch
M tracing/tracing/extras/chrome/estimated_input_latency.html View 1 chunk +8 lines, -2 lines 0 comments Download
M tracing/tracing/extras/chrome/estimated_input_latency_test.html View 1 1 chunk +20 lines, -3 lines 2 comments Download

Messages

Total messages: 13 (5 generated)
ulan
Charlie, could you please take a look? We discussed this check in one of my ...
3 years, 10 months ago (2017-02-24 15:14:19 UTC) #3
charliea (OOO until 10-5)
Would you mind writing a short unit test that verifies this is working correctly?
3 years, 10 months ago (2017-02-24 20:14:55 UTC) #4
charliea (OOO until 10-5)
On 2017/02/24 20:14:55, charliea wrote: > Would you mind writing a short unit test that ...
3 years, 10 months ago (2017-02-24 21:15:12 UTC) #5
ulan
Added tests, ptal.
3 years, 10 months ago (2017-02-24 21:15:18 UTC) #6
charliea (OOO until 10-5)
lgtm w/ comment https://codereview.chromium.org/2713043003/diff/20001/tracing/tracing/extras/chrome/estimated_input_latency_test.html File tracing/tracing/extras/chrome/estimated_input_latency_test.html (right): https://codereview.chromium.org/2713043003/diff/20001/tracing/tracing/extras/chrome/estimated_input_latency_test.html#newcode318 tracing/tracing/extras/chrome/estimated_input_latency_test.html:318: assert.closeTo((100.0001 + 0.0001) / 2, General ...
3 years, 10 months ago (2017-02-24 21:22:01 UTC) #7
ulan
https://codereview.chromium.org/2713043003/diff/20001/tracing/tracing/extras/chrome/estimated_input_latency_test.html File tracing/tracing/extras/chrome/estimated_input_latency_test.html (right): https://codereview.chromium.org/2713043003/diff/20001/tracing/tracing/extras/chrome/estimated_input_latency_test.html#newcode318 tracing/tracing/extras/chrome/estimated_input_latency_test.html:318: assert.closeTo((100.0001 + 0.0001) / 2, On 2017/02/24 21:22:01, charliea ...
3 years, 10 months ago (2017-02-24 21:28:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2713043003/20001
3 years, 10 months ago (2017-02-24 21:28:29 UTC) #10
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 21:50:32 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698