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

Issue 98953002: Configure synthetic delays through TraceLog (Closed)

Created:
7 years ago by Sami
Modified:
6 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, dsinclair+watch_chromium.org, jam, ernstm
Visibility:
Public.

Description

Configure synthetic delays through TraceLog Make it possible to configure synthetic delays using trace categories. For example, the category filter "DELAY(gpu.SwapBuffers;16)" would make swap buffers take at least 16 ms to complete. BUG=307841 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244207

Patch Set 1 #

Patch Set 2 : Formatting. #

Patch Set 3 : Use category filters to configure delays. #

Patch Set 4 : Only use category=value syntax for delays. #

Total comments: 1

Patch Set 5 : Added DELAY() to filter format. Fixed merging. Added tests. #

Patch Set 6 : Fixed ToString. #

Patch Set 7 : Fixed test failure on ios_dbg_simulator #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -4 lines) Patch
M base/debug/trace_event_impl.h View 1 2 3 4 6 chunks +22 lines, -0 lines 0 comments Download
M base/debug/trace_event_impl.cc View 1 2 3 4 5 10 chunks +69 lines, -3 lines 0 comments Download
M base/debug/trace_event_synthetic_delay.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M base/debug/trace_event_synthetic_delay_unittest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M base/debug/trace_event_unittest.cc View 1 2 3 4 5 2 chunks +44 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Sami
7 years ago (2013-12-02 12:14:08 UTC) #1
Sami
Nat, is this along the lines of what you had in mind about using category ...
7 years ago (2013-12-03 17:45:08 UTC) #2
Sami
Friendly ping? I'll do another pass to clean this up if you think this approach ...
7 years ago (2013-12-11 18:11:52 UTC) #3
Sami
Okay, cleaned this up like we chatted. PTAL, thanks!
7 years ago (2013-12-12 21:00:40 UTC) #4
ernstm
Why do you add the synthetic delay configuration to the event filter? Those are two ...
7 years ago (2013-12-17 19:14:11 UTC) #5
Sami
On 2013/12/17 19:14:11, Manfred Ernst wrote: > Why do you add the synthetic delay configuration ...
7 years ago (2013-12-17 19:23:56 UTC) #6
ernstm
On 2013/12/17 19:23:56, Sami wrote: > On 2013/12/17 19:14:11, Manfred Ernst wrote: > > Why ...
7 years ago (2013-12-17 20:10:12 UTC) #7
Sami
On 2013/12/17 20:10:12, Manfred Ernst wrote: > But a synthetic delay isn't a category filter. ...
7 years ago (2013-12-18 16:12:30 UTC) #8
nduca
lgtm but lets prefix the delay=x with a keyword so its like SET_DELAY(x,y) or DELAY(x)=y ...
6 years, 11 months ago (2014-01-07 19:22:32 UTC) #9
nduca
My rationale regarding manfred's (valid) concerns: - This is good enough to start experimenting - ...
6 years, 11 months ago (2014-01-07 19:24:56 UTC) #10
dsinclair1
https://codereview.chromium.org/98953002/diff/60001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/98953002/diff/60001/base/debug/trace_event_impl.cc#newcode2320 base/debug/trace_event_impl.cc:2320: } Do we need to merge the delay lists ...
6 years, 11 months ago (2014-01-07 19:52:40 UTC) #11
Sami
> lgtm but lets prefix the delay=x with a keyword so its like SET_DELAY(x,y) or ...
6 years, 11 months ago (2014-01-09 19:20:42 UTC) #12
dsinclair1
lgtm
6 years, 11 months ago (2014-01-09 19:23:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/98953002/170001
6 years, 11 months ago (2014-01-09 19:27:04 UTC) #14
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=114423
6 years, 11 months ago (2014-01-09 20:42:28 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/98953002/170001
6 years, 11 months ago (2014-01-10 10:35:48 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/98953002/450001
6 years, 11 months ago (2014-01-10 13:53:45 UTC) #17
commit-bot: I haz the power
6 years, 11 months ago (2014-01-10 18:48:07 UTC) #18
Message was sent while issue was closed.
Change committed as 244207

Powered by Google App Engine
This is Rietveld 408576698