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

Issue 145923002: Added support to listen on Network.responseReceived and expose that through tab.py (Closed)

Created:
6 years, 11 months ago by bolian
Modified:
6 years, 9 months ago
Reviewers:
tonyg, bulach, dtu, nduca
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org, bengr, Matt Welsh
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Added support to listen on Network.responseReceived and expose that through tab.py BUG=337526 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255200

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : added unittest #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 6

Patch Set 6 : . #

Patch Set 7 : new API #

Patch Set 8 : sync to head. #

Total comments: 12

Patch Set 9 : Addressed comments, added the ability to save response bodies. #

Patch Set 10 : Get body on demand. #

Patch Set 11 : sync to head, add cache checking. #

Patch Set 12 : . #

Patch Set 13 : Expose HTTP responses as a timeline. #

Total comments: 2

Patch Set 14 : Combined timelines into one and no network recording by default. #

Patch Set 15 : minor (added a missing file) #

Patch Set 16 : (inspector_network cleanup from previous API) #

Total comments: 16

Patch Set 17 : Changes on review comments. #

Patch Set 18 : . #

Patch Set 19 : sync to HEAD to get latest timeline changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -20 lines) Patch
M tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +23 lines, -4 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/inspector_network.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +217 lines, -1 line 0 comments Download
A tools/telemetry/telemetry/core/backends/chrome/inspector_network_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +69 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/inspector_timeline.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +9 lines, -13 lines 0 comments Download
A tools/telemetry/telemetry/core/backends/chrome/timeline_recorder.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +13 lines, -0 lines 0 comments Download
A + tools/telemetry/telemetry/core/timeline/recording_options.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/web_contents.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
bolian
This is the change we have talked about to support data reduction proxy tests's need ...
6 years, 11 months ago (2014-01-23 19:09:45 UTC) #1
tonyg
This looks reasonable to me. My only comment is that we should add a unittest. ...
6 years, 11 months ago (2014-01-23 19:29:23 UTC) #2
bolian
Thanks, added unit tests.
6 years, 11 months ago (2014-01-24 01:31:53 UTC) #3
bulach
can't see patchset #6, says "invalid chunk", so commenting the previous one.. I have some ...
6 years, 11 months ago (2014-01-24 05:23:05 UTC) #4
bolian
Thanks for the review. I changed the API. Something is wrong with my uploads since ...
6 years, 11 months ago (2014-01-26 20:43:57 UTC) #5
bolian
ping. Dave or Nat, could you take a look?
6 years, 10 months ago (2014-01-28 20:20:49 UTC) #6
nduca
cant you do this from javascript and then build on that a WaitForSomething?
6 years, 10 months ago (2014-01-29 01:09:20 UTC) #7
bolian
On 2014/01/29 01:09:20, nduca wrote: > cant you do this from javascript and then build ...
6 years, 10 months ago (2014-01-29 02:25:43 UTC) #8
bolian
ping. Nat, can you clarify the question?
6 years, 10 months ago (2014-01-30 20:28:48 UTC) #9
bulach
thanks! just some drive by nits, otherwise I'm happy when nat / dave are happy.. ...
6 years, 10 months ago (2014-02-03 21:30:05 UTC) #10
bolian
Thanks for the review! I just realize that I will need the response body in ...
6 years, 10 months ago (2014-02-04 02:05:29 UTC) #11
bolian
ping? Nat/Dave? Nat, I am unclear what your suggestion about using javascript, could you elaborate? ...
6 years, 10 months ago (2014-02-05 19:00:19 UTC) #12
nduca
You should figure out a way to do this without changing in telemetry, or explain ...
6 years, 10 months ago (2014-02-07 19:09:58 UTC) #13
bulach
I can try to explain :) this is a new "domain" in devtools protocol, not ...
6 years, 10 months ago (2014-02-07 19:45:37 UTC) #14
bolian
Talking about this in an email thread.
6 years, 10 months ago (2014-02-07 22:29:50 UTC) #15
bolian
Hi Tony, Our email discussion leaves you as my reviewer. Did you get a chance ...
6 years, 10 months ago (2014-02-13 18:15:46 UTC) #16
nduca
tonyg: If we take this route, this should produce a timeline, ideally just be on ...
6 years, 10 months ago (2014-02-18 23:31:54 UTC) #17
bolian
6 years, 10 months ago (2014-02-19 00:16:05 UTC) #18
bolian
Hello, As Nat suggested, I changed the CL to expose the recorded HTTP responses as ...
6 years, 10 months ago (2014-02-25 03:15:35 UTC) #19
nduca
https://codereview.chromium.org/145923002/diff/700001/tools/telemetry/telemetry/core/web_contents.py File tools/telemetry/telemetry/core/web_contents.py (right): https://codereview.chromium.org/145923002/diff/700001/tools/telemetry/telemetry/core/web_contents.py#newcode91 tools/telemetry/telemetry/core/web_contents.py:91: def StartTimelineRecording(self, timeline_names=None): Promising start! I'd like to see ...
6 years, 10 months ago (2014-02-25 04:52:47 UTC) #20
bolian
https://codereview.chromium.org/145923002/diff/700001/tools/telemetry/telemetry/core/web_contents.py File tools/telemetry/telemetry/core/web_contents.py (right): https://codereview.chromium.org/145923002/diff/700001/tools/telemetry/telemetry/core/web_contents.py#newcode91 tools/telemetry/telemetry/core/web_contents.py:91: def StartTimelineRecording(self, timeline_names=None): Thanks for the review. Yes, I ...
6 years, 10 months ago (2014-02-25 07:26:34 UTC) #21
bolian
I have updated the CL to combine the previous timeline timeline and network timeline into ...
6 years, 10 months ago (2014-02-25 20:01:09 UTC) #22
bolian
On 2014/02/25 20:01:09, bolian wrote: > I have updated the CL to combine the previous ...
6 years, 9 months ago (2014-02-27 02:44:40 UTC) #23
tonyg
https://codereview.chromium.org/145923002/diff/750001/tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py File tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py (right): https://codereview.chromium.org/145923002/diff/750001/tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py#newcode45 tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py:45: self._timeline_recording_options = None Could we avoid stashing this object ...
6 years, 9 months ago (2014-03-04 05:27:31 UTC) #24
bolian
https://codereview.chromium.org/145923002/diff/750001/tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py File tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py (right): https://codereview.chromium.org/145923002/diff/750001/tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py#newcode45 tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py:45: self._timeline_recording_options = None Done. I changed to use the ...
6 years, 9 months ago (2014-03-04 20:32:44 UTC) #25
bolian
https://codereview.chromium.org/145923002/diff/750001/tools/telemetry/telemetry/core/backends/chrome/inspector_network.py File tools/telemetry/telemetry/core/backends/chrome/inspector_network.py (right): https://codereview.chromium.org/145923002/diff/750001/tools/telemetry/telemetry/core/backends/chrome/inspector_network.py#newcode6 tools/telemetry/telemetry/core/backends/chrome/inspector_network.py:6: from cherrypy.lib import httputil as _httputil Actually, all I ...
6 years, 9 months ago (2014-03-05 01:22:40 UTC) #26
tonyg
lgtm This is beautiful, thanks for bearing with us on the design.
6 years, 9 months ago (2014-03-05 03:47:26 UTC) #27
bolian
The CQ bit was checked by bolian@chromium.org
6 years, 9 months ago (2014-03-05 18:55:37 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bolian@chromium.org/145923002/810001
6 years, 9 months ago (2014-03-05 18:57:00 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 19:23:26 UTC) #30
commit-bot: I haz the power
Retried try job too often on win for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=155928
6 years, 9 months ago (2014-03-05 19:23:27 UTC) #31
tonyg
The CQ bit was checked by tonyg@chromium.org
6 years, 9 months ago (2014-03-05 21:09:57 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bolian@chromium.org/145923002/810001
6 years, 9 months ago (2014-03-05 21:10:38 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bolian@chromium.org/145923002/810001
6 years, 9 months ago (2014-03-06 00:01:42 UTC) #34
commit-bot: I haz the power
Change committed as 255200
6 years, 9 months ago (2014-03-06 01:19:50 UTC) #35
nduca
this is really nice, awesomely done @bolian :)
6 years, 9 months ago (2014-03-06 01:58:13 UTC) #36
bolian
6 years, 9 months ago (2014-03-06 02:04:47 UTC) #37
Message was sent while issue was closed.
Thanks for the suggestion to use Timeline! :)

Powered by Google App Engine
This is Rietveld 408576698