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

Issue 53923005: Add synthetic delay testing framework (Closed)

Created:
7 years, 1 month ago by Sami
Modified:
6 years, 11 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, erikwright+watch_chromium.org, Dominik Grewe
Visibility:
Public.

Description

Add synthetic delay testing framework This patch introduces a synthetic delay framework for testing. It will be used to measure animation smoothness and input latency under varying loads in different parts of the graphics and input pipelines. The basic building block for synthetic delays is the delay point which is inserted to a function scope of interest, e.g.: TRACE_EVENT_SYNTHETIC_DELAY("cc.DrawAndSwap"); Testing code can then configure how long the enclosing scope of the delay point should take to execute. If the function completes faster than the configured duration, a busy loop is used to make up the difference. BUG=307841, 324057 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242947

Patch Set 1 #

Total comments: 20

Patch Set 2 : Review comments, add tests, changed begin/end semantics (need better names for these). #

Patch Set 3 : Better naming, comments, more tests. #

Patch Set 4 : Renaming and cleanup. #

Total comments: 2

Patch Set 5 : Tweaked test timings. #

Patch Set 6 : Added destructor. #

Patch Set 7 : Fix typo. #

Patch Set 8 : Fixed component build #

Patch Set 9 : Use only one TLS slot per thread. #

Total comments: 1

Patch Set 10 : Happy new year #

Unified diffs Side-by-side diffs Delta from patch set Stats (+508 lines, -0 lines) Patch
M base/base.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
A base/debug/trace_event_synthetic_delay.h View 1 2 3 4 5 6 7 8 9 1 chunk +151 lines, -0 lines 0 comments Download
A base/debug/trace_event_synthetic_delay.cc View 1 2 3 4 5 6 7 8 9 1 chunk +236 lines, -0 lines 0 comments Download
A base/debug/trace_event_synthetic_delay_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +118 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (0 generated)
Sami
Hi Brian. Here's a rough cut of the synthetic delay framework we were talking about. ...
7 years, 1 month ago (2013-11-04 18:56:34 UTC) #1
brianderson
Neat! Thanks for putting this together, I think it will simplify much of the plumbing. ...
7 years, 1 month ago (2013-11-05 03:12:05 UTC) #2
Sami
+nduca@ Thanks for the comments Brian. I'll do a new rev based on them but ...
7 years, 1 month ago (2013-11-05 18:53:26 UTC) #3
nduca
I've scheduled a meeting for 9a tomorrow to come up with scheduler test cases. We ...
7 years, 1 month ago (2013-11-05 19:26:47 UTC) #4
nduca
https://codereview.chromium.org/53923005/diff/1/base/base.gypi File base/base.gypi (right): https://codereview.chromium.org/53923005/diff/1/base/base.gypi#newcode151 base/base.gypi:151: 'debug/synthetic_delay.cc', rename to trace_event_synthetic_delay so i can lg it
7 years, 1 month ago (2013-11-05 19:27:03 UTC) #5
Sami
On 2013/11/05 19:26:47, nduca wrote: > I've scheduled a meeting for 9a tomorrow to come ...
7 years, 1 month ago (2013-11-05 19:36:13 UTC) #6
brianderson
On 2013/11/05 18:53:26, Sami wrote: > +nduca@ > > Thanks for the comments Brian. I'll ...
7 years, 1 month ago (2013-11-06 15:29:42 UTC) #7
Dominik Grewe
Just a thought... https://codereview.chromium.org/53923005/diff/1/base/debug/synthetic_delay.h File base/debug/synthetic_delay.h (right): https://codereview.chromium.org/53923005/diff/1/base/debug/synthetic_delay.h#newcode11 base/debug/synthetic_delay.h:11: // sleep until the deadline is ...
7 years, 1 month ago (2013-11-07 16:45:53 UTC) #8
brianderson
https://codereview.chromium.org/53923005/diff/1/base/debug/synthetic_delay.h File base/debug/synthetic_delay.h (right): https://codereview.chromium.org/53923005/diff/1/base/debug/synthetic_delay.h#newcode11 base/debug/synthetic_delay.h:11: // sleep until the deadline is met. On 2013/11/07 ...
7 years, 1 month ago (2013-11-18 21:04:06 UTC) #9
Sami
Thanks for the comments guys! I've changed this to use busy looping since it better ...
7 years, 1 month ago (2013-11-22 18:29:13 UTC) #10
nduca
minor tweak and then lgtm https://codereview.chromium.org/53923005/diff/230001/base/debug/trace_event_synthetic_delay.h File base/debug/trace_event_synthetic_delay.h (right): https://codereview.chromium.org/53923005/diff/230001/base/debug/trace_event_synthetic_delay.h#newcode16 base/debug/trace_event_synthetic_delay.h:16: // TRACE_EVENT_SYNTHETIC_DELAY("cc.LayerTreeHost.DrawAndSwap"); i guess ...
7 years ago (2013-11-24 19:36:40 UTC) #11
brianderson
lgtm https://codereview.chromium.org/53923005/diff/230001/base/debug/trace_event_synthetic_delay_unittest.cc File base/debug/trace_event_synthetic_delay_unittest.cc (right): https://codereview.chromium.org/53923005/diff/230001/base/debug/trace_event_synthetic_delay_unittest.cc#newcode83 base/debug/trace_event_synthetic_delay_unittest.cc:83: EXPECT_LT(TestFunction(), kTargetDurationMs); EXPECT_EQ(TestFunction(), 0)?
7 years ago (2013-11-26 02:48:34 UTC) #12
Sami
> i guess it seems possiblein the future that we'll want both busy and yielding ...
7 years ago (2013-11-26 18:59:33 UTC) #13
Sami
+jar@ for base/*.gyp* owners' review please.
7 years ago (2013-11-26 19:09:13 UTC) #14
jar (doing other things)
base/*.gyp LGTM
7 years ago (2013-11-26 19:21:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/53923005/310001
7 years ago (2013-11-26 19:35:21 UTC) #16
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=193523
7 years ago (2013-11-26 19:52:27 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/53923005/310001
7 years ago (2013-11-26 19:55:18 UTC) #18
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=95901
7 years ago (2013-11-26 20:24:00 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/53923005/330001
7 years ago (2013-11-27 11:10:55 UTC) #20
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=195792
7 years ago (2013-11-27 11:20:50 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/53923005/350001
7 years ago (2013-11-27 11:51:36 UTC) #22
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, ...
7 years ago (2013-11-27 12:29:31 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/53923005/370001
7 years ago (2013-11-27 14:14:27 UTC) #24
commit-bot: I haz the power
Change committed as 237580
7 years ago (2013-11-27 16:20:04 UTC) #25
acleung1
A revert of this CL has been created in https://codereview.chromium.org/92623003/ by acleung@chromium.org. The reason for ...
7 years ago (2013-11-27 21:01:56 UTC) #26
danakj
Link to the failure please? On Wed, Nov 27, 2013 at 4:01 PM, <acleung@chromium.org> wrote: ...
7 years ago (2013-11-27 21:04:47 UTC) #27
brianderson
On 2013/11/27 21:04:47, danakj wrote: > Link to the failure please? > > > On ...
7 years ago (2013-11-27 21:09:33 UTC) #28
Sami
The problem was that we were running out of TLS slots on Android. The limit ...
7 years ago (2013-11-28 13:09:05 UTC) #29
brianderson
On 2013/11/28 13:09:05, Sami wrote: > The problem was that we were running out of ...
7 years ago (2013-12-02 20:37:20 UTC) #30
jar (doing other things)
On 2013/12/02 20:37:20, Brian Anderson wrote: > On 2013/11/28 13:09:05, Sami wrote: > > The ...
7 years ago (2013-12-03 02:14:37 UTC) #31
Sami
On 2013/12/02 20:37:20, Brian Anderson wrote: > Now that there is one TLS slot per ...
7 years ago (2013-12-03 11:41:18 UTC) #32
Sami
Any objections to relanding this?
7 years ago (2013-12-04 16:24:47 UTC) #33
brianderson
On 2013/12/04 16:24:47, Sami wrote: > Any objections to relanding this? Nope. lgtm - thanks ...
7 years ago (2013-12-10 02:09:17 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/53923005/390001
7 years ago (2013-12-10 14:36:10 UTC) #35
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=40345
7 years ago (2013-12-10 14:50:29 UTC) #36
Sami
Oops, like like jar@ isn't an owner in base anymore. brettw@, mind having a look ...
7 years ago (2013-12-10 15:30:05 UTC) #37
Sami
brettw@: ping?
7 years ago (2013-12-12 19:26:22 UTC) #38
Sami
mark@, could you give me a rubber stamp for base/gyp{,i}? I'm not sure if brettw@ ...
7 years ago (2013-12-17 16:54:20 UTC) #39
Sami
Adding more owners for base/base.gyp and base/base.gypi. PTAL, thanks!
6 years, 11 months ago (2014-01-03 13:25:00 UTC) #40
Mark Mentovai
LGTM. I only reviewed the .gyp and .gypi file. And the copyright boilerplate junk. https://codereview.chromium.org/53923005/diff/390001/base/debug/trace_event_synthetic_delay.h ...
6 years, 11 months ago (2014-01-03 14:19:24 UTC) #41
Sami
On 2014/01/03 14:19:24, Mark Mentovai wrote: > LGTM. I only reviewed the .gyp and .gypi ...
6 years, 11 months ago (2014-01-03 14:40:08 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/53923005/450001
6 years, 11 months ago (2014-01-03 14:40:29 UTC) #43
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) chromedriver2_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=209541
6 years, 11 months ago (2014-01-03 15:25:13 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/53923005/450001
6 years, 11 months ago (2014-01-03 15:42:27 UTC) #45
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) chromedriver2_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=207443
6 years, 11 months ago (2014-01-03 16:21:10 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/53923005/450001
6 years, 11 months ago (2014-01-03 21:33:57 UTC) #47
commit-bot: I haz the power
6 years, 11 months ago (2014-01-03 22:37:41 UTC) #48
Message was sent while issue was closed.
Change committed as 242947

Powered by Google App Engine
This is Rietveld 408576698