New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 901395 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

DevTools: speed up network interception

Project Member Reported by caseq@chromium.org, Nov 2

Issue description

The overhead of DevTools protocol and network interception when using interception to replace the network layer is damn too high!

 
Project Member

Comment 1 by bugdroid1@chromium.org, Nov 6

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/0fc99ad6b4abe0d8b564fc65bb284d741a19fb5a

commit 0fc99ad6b4abe0d8b564fc65bb284d741a19fb5a
Author: Andrey Kosyakov <caseq@chromium.org>
Date: Tue Nov 06 19:51:39 2018

Reduce number of copies when handling continueInterceptedRequest

Expose RefCountedMemory from protocol::Binary and pass it all the way
down to interceptor.

Bug: 901395
Change-Id: Ic684d5b35742922e5893b17b72763157df3f4dca
Reviewed-on: https://chromium-review.googlesource.com/c/1315937
Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605791}
[modify] https://crrev.com/0fc99ad6b4abe0d8b564fc65bb284d741a19fb5a/content/browser/devtools/devtools_network_interceptor.cc
[modify] https://crrev.com/0fc99ad6b4abe0d8b564fc65bb284d741a19fb5a/content/browser/devtools/devtools_network_interceptor.h
[modify] https://crrev.com/0fc99ad6b4abe0d8b564fc65bb284d741a19fb5a/content/browser/devtools/devtools_url_interceptor_request_job.cc
[modify] https://crrev.com/0fc99ad6b4abe0d8b564fc65bb284d741a19fb5a/content/browser/devtools/devtools_url_loader_interceptor.cc
[modify] https://crrev.com/0fc99ad6b4abe0d8b564fc65bb284d741a19fb5a/content/browser/devtools/protocol/fetch_handler.cc
[modify] https://crrev.com/0fc99ad6b4abe0d8b564fc65bb284d741a19fb5a/content/browser/devtools/protocol/network_handler.cc
[modify] https://crrev.com/0fc99ad6b4abe0d8b564fc65bb284d741a19fb5a/content/browser/devtools/protocol_string.h

Project Member

Comment 2 by bugdroid1@chromium.org, Nov 13

Project Member

Comment 3 by bugdroid1@chromium.org, Dec 28

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/eec9f90359dfd9baede51aa2adfe63ae0772d7d2

commit eec9f90359dfd9baede51aa2adfe63ae0772d7d2
Author: Andrey Kosyakov <caseq@chromium.org>
Date: Fri Dec 28 19:28:12 2018

DevTools: avoid cloning interface pointers to factory and cookie mgr

Bug: 901395
Change-Id: I8a4827e80e69fdfcf3b779998e4268ee45882cb5
Reviewed-on: https://chromium-review.googlesource.com/c/1391734
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#619178}
[modify] https://crrev.com/eec9f90359dfd9baede51aa2adfe63ae0772d7d2/content/browser/devtools/devtools_url_loader_interceptor.cc

Project Member

Comment 4 by bugdroid1@chromium.org, Jan 16

The following revision refers to this bug:
  https://chromium.googlesource.com/deps/inspector_protocol/+/fdbdb154336fc1f15a0a6775349dd90243b8d3fc

commit fdbdb154336fc1f15a0a6775349dd90243b8d3fc
Author: Johannes Henkel <johannes@chromium.org>
Date: Wed Jan 16 00:13:12 2019

Revert "Remove copying in protocol type conversion"

This reverts commit 8bdfb3cb7cd2bedc6ebbb385386fe0f3d0f7ce9b.

Unfortunately landing this ran into problems with increased binary
sizes (on Android?); we should revisit this or something similar later.

Bug: 901395
Change-Id: I2fe022d925b5f500cc20a067f33688a2a98de6ac
[modify] https://crrev.com/fdbdb154336fc1f15a0a6775349dd90243b8d3fc/lib/Object_h.template
[modify] https://crrev.com/fdbdb154336fc1f15a0a6775349dd90243b8d3fc/lib/Array_h.template
[modify] https://crrev.com/fdbdb154336fc1f15a0a6775349dd90243b8d3fc/lib/Object_cpp.template
[modify] https://crrev.com/fdbdb154336fc1f15a0a6775349dd90243b8d3fc/templates/TypeBuilder_h.template
[modify] https://crrev.com/fdbdb154336fc1f15a0a6775349dd90243b8d3fc/templates/Imported_h.template
[modify] https://crrev.com/fdbdb154336fc1f15a0a6775349dd90243b8d3fc/templates/Exported_h.template
[modify] https://crrev.com/fdbdb154336fc1f15a0a6775349dd90243b8d3fc/lib/ValueConversions_h.template
[modify] https://crrev.com/fdbdb154336fc1f15a0a6775349dd90243b8d3fc/templates/TypeBuilder_cpp.template
[modify] https://crrev.com/fdbdb154336fc1f15a0a6775349dd90243b8d3fc/lib/Values_cpp.template
[modify] https://crrev.com/fdbdb154336fc1f15a0a6775349dd90243b8d3fc/lib/Values_h.template

Sign in to add a comment