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

Issue 99543002: Make it possible to configure synthetic delays through Devtools (Closed)

Created:
7 years ago by Sami
Modified:
6 years, 11 months ago
CC:
chromium-reviews, chrome-speed-team+watch_google.com, vsevik, jam, yurys, joi+watch-content_chromium.org, paulirish+reviews_chromium.org, darin-cc_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, pfeldman, telemetry+watch_chromium.org
Visibility:
Public.

Description

Make it possible to configure synthetic delays through Devtools Expose a method for configuring synthetic delays through the Devtools tracing API. One message (Tracing.configureSyntheticDelays) is used to configure the details, and another (Tracing.configureSyntheticDelaysComplete) notifies that the operation has completed. BUG=307841

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -2 lines) Patch
M content/browser/devtools/devtools_protocol_constants.h View 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/devtools/devtools_protocol_constants.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/devtools/devtools_tracing_handler.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/devtools/devtools_tracing_handler.cc View 3 chunks +64 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/browser_backend.py View 1 chunk +8 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/chrome_browser_backend.py View 3 chunks +14 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/tracing_backend.py View 2 chunks +22 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/browser.py View 1 chunk +7 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/page/actions/set_synthetic_delays.py View 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Sami
Here's how configuring synthetic delays could work through devtools. IMHO a little cleaner than the ...
7 years ago (2013-12-02 17:37:03 UTC) #1
tonyg
On 2013/12/02 17:37:03, Sami wrote: > Here's how configuring synthetic delays could work through devtools. ...
7 years ago (2013-12-02 17:44:51 UTC) #2
Sami
On 2013/12/02 17:44:51, tonyg wrote: > Teaching chrome to do synthetic delays seems like a ...
7 years ago (2013-12-02 18:34:14 UTC) #3
tonyg
On 2013/12/02 18:34:14, Sami wrote: > On 2013/12/02 17:44:51, tonyg wrote: > > Teaching chrome ...
7 years ago (2013-12-02 18:49:20 UTC) #4
Sami
On 2013/12/02 18:49:20, tonyg wrote: > Cool, good to hear. I've also wondered whether linux's ...
7 years ago (2013-12-02 18:59:26 UTC) #5
nduca
TBH I'm quite skeptical of this os-level hooking approach. I understand why you suggest it, ...
7 years ago (2013-12-02 22:06:47 UTC) #6
Sami
On 2013/12/02 22:06:47, nduca wrote: > Sami, what about expanding categoryFilter to understand cc.debug,cc.thingDelay=7 > ...
7 years ago (2013-12-03 17:45:54 UTC) #7
tonyg
On 2013/12/02 22:06:47, nduca wrote: > TBH I'm quite skeptical of this os-level hooking approach. ...
7 years ago (2013-12-04 16:45:02 UTC) #8
tonyg
On 2013/12/02 22:06:47, nduca wrote: > TBH I'm quite skeptical of this os-level hooking approach. ...
7 years ago (2013-12-04 16:45:03 UTC) #9
Sami
On 2013/12/04 16:45:03, tonyg wrote: > On 2013/12/02 22:06:47, nduca wrote: > > TBH I'm ...
7 years ago (2013-12-04 16:53:20 UTC) #10
Sami
> On 2013/12/04 16:45:03, tonyg wrote: > > I'd like to swing by your desk ...
7 years ago (2013-12-09 15:48:14 UTC) #11
tonyg_google
Nat and I caught up on this. tldr; is that he convinced me there is ...
7 years ago (2013-12-09 16:22:58 UTC) #12
Sami
7 years ago (2013-12-09 19:17:08 UTC) #13
On 2013/12/09 16:22:58, tonyg_google wrote:
> Nat and I caught up on this. tldr; is that he convinced me there is a
> use case for this, but we both agreed there is a potential for
> foot-gunning. Sami and I are going to chat about it today and then
> we'll post a summary to the thread.

Thanks for the chat Tony. My main takeaway was that we should only use synthetic
delays in (micro)benchmarks where they truly make sense. The danger is that we'd
have them all over the place and then made optimizations that improve those
numbers but wouldn't actually have a positive effect in the real world.

It seems like the right way forward is to use delay-based testing for specific
components that require it (e.g., scheduler) and to keep developing more
implementation-agnostic end-to-end tests for things like smoothness and latency.
This combination should serve as a robust guard against regressions and a guide
for optimization and larger architecture changes.

Powered by Google App Engine
This is Rietveld 408576698