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

Issue 2444783002: Add trace event for complete network request (Closed)

Created:
4 years, 2 months ago by dproy
Modified:
4 years, 1 month ago
CC:
blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews+fetch_chromium.org, Primiano Tucci (use gerrit), tyoshino+watch_chromium.org, Yoav Weiss
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add trace event for complete network request Network instrumentation in Chrome is being revamped. This is a first in a series of CLs that introduces new trace points for all the lifecycle phases of a network request. The current CL introduces an async slice representing the time from the beginning of a network request in Blink (more precisely, from the time when Blink generates a unique id for the request) to when all of the response has been received by Blink or Blink has been notified that the request failed. It does not include the time to notify the ResourceClients, which means, among other things, it does not include the time to parse the response. BUG= Committed: https://crrev.com/7624dfa8d32243a7f631975c825ef1c9db6b67fb Cr-Commit-Position: refs/heads/master@{#431747}

Patch Set 1 #

Total comments: 19

Patch Set 2 : Address review comments #

Total comments: 8

Patch Set 3 : Address comments by chiniforooshan@ #

Patch Set 4 : Remove empty beginResourceLoad function #

Total comments: 10

Patch Set 5 : Nuke old tracepoints. Add priority instant events. Add TracedValue. #

Total comments: 20

Patch Set 6 : Address comments by caseq@ #

Patch Set 7 : duplicate upload #

Patch Set 8 : Calm down compiler with return value #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -8 lines) Patch
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 8 chunks +16 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/network/NetworkInstrumentation.h View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/network/NetworkInstrumentation.cpp View 1 2 3 4 5 6 7 1 chunk +75 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (15 generated)
dproy
PTAL. Is this a good starting point for the network instrumentation work?
4 years, 2 months ago (2016-10-24 02:35:32 UTC) #2
chiniforooshan
Thanks a lot for doing this! https://codereview.chromium.org/2444783002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2444783002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode501 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:501: TRACE_EVENT1("blink", "ResourceFetcher::requestResource", "url", ...
4 years, 1 month ago (2016-10-24 19:25:37 UTC) #3
caseq
https://codereview.chromium.org/2444783002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2444783002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode509 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:509: identifier, request.url().getString().utf8().data()); On 2016/10/24 19:25:36, chiniforooshan wrote: > Do ...
4 years, 1 month ago (2016-10-24 22:47:46 UTC) #4
Yoav Weiss
https://codereview.chromium.org/2444783002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2444783002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode509 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:509: identifier, request.url().getString().utf8().data()); On 2016/10/24 22:47:46, caseq wrote: > On ...
4 years, 1 month ago (2016-10-25 04:46:46 UTC) #6
chiniforooshan
https://codereview.chromium.org/2444783002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2444783002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode509 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:509: identifier, request.url().getString().utf8().data()); On 2016/10/24 22:47:46, caseq wrote: > On ...
4 years, 1 month ago (2016-10-25 18:00:40 UTC) #7
dproy
Updated to address all the comments. PTAL :) https://codereview.chromium.org/2444783002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2444783002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode501 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:501: TRACE_EVENT1("blink", ...
4 years, 1 month ago (2016-11-03 15:13:37 UTC) #10
chiniforooshan
lgtm with only minor comments. https://codereview.chromium.org/2444783002/diff/20001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2444783002/diff/20001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode640 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:640: scopedResourceLoadTracker.doNotCloseSliceAtEndOfScope(); Move this right ...
4 years, 1 month ago (2016-11-03 15:50:36 UTC) #11
dproy
Addressed comments. +caseq I'll add owner reviewers after you do another pass on this. https://codereview.chromium.org/2444783002/diff/20001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp ...
4 years, 1 month ago (2016-11-03 16:27:19 UTC) #12
fmeawad
https://codereview.chromium.org/2444783002/diff/60001/third_party/WebKit/Source/platform/network/NetworkInstrumentation.cpp File third_party/WebKit/Source/platform/network/NetworkInstrumentation.cpp (right): https://codereview.chromium.org/2444783002/diff/60001/third_party/WebKit/Source/platform/network/NetworkInstrumentation.cpp#newcode15 third_party/WebKit/Source/platform/network/NetworkInstrumentation.cpp:15: const char kNetInstrumentationCategory[] = TRACE_DISABLED_BY_DEFAULT("net.v2"); Can you use a ...
4 years, 1 month ago (2016-11-03 22:18:58 UTC) #14
caseq
Looks mostly good. Let's nuke the old instrumentation now and let's add an instant event ...
4 years, 1 month ago (2016-11-03 22:43:47 UTC) #15
dproy
Ready for review. PTAL. https://codereview.chromium.org/2444783002/diff/60001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2444783002/diff/60001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode1055 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:1055: TRACE_EVENT_ASYNC_STEP_INTO0("blink.net", "Resource", resource->identifier(), On 2016/11/03 ...
4 years, 1 month ago (2016-11-04 20:41:55 UTC) #16
Charlie Harrison
https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode504 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:504: // TODO(dproy): Remove this. http://crbug.com/659666 drive-by: This trace is ...
4 years, 1 month ago (2016-11-08 15:20:18 UTC) #18
dproy
https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode504 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:504: // TODO(dproy): Remove this. http://crbug.com/659666 On 2016/11/08 15:20:18, Charlie ...
4 years, 1 month ago (2016-11-08 16:31:50 UTC) #19
Charlie Harrison
https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode504 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:504: // TODO(dproy): Remove this. http://crbug.com/659666 On 2016/11/08 16:31:50, dproy ...
4 years, 1 month ago (2016-11-08 16:34:26 UTC) #20
dproy
https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode504 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:504: // TODO(dproy): Remove this. http://crbug.com/659666 On 2016/11/08 16:34:26, Charlie ...
4 years, 1 month ago (2016-11-08 16:45:35 UTC) #21
Charlie Harrison
https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode504 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:504: // TODO(dproy): Remove this. http://crbug.com/659666 On 2016/11/08 16:45:35, dproy ...
4 years, 1 month ago (2016-11-08 17:34:04 UTC) #22
dproy
On 2016/11/08 17:34:04, Charlie Harrison wrote: > https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp > File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): > > https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode504 ...
4 years, 1 month ago (2016-11-08 17:56:34 UTC) #23
caseq
lgtm % bunch of comments. https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode515 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:515: network_instrumentation::initialResourcePrioritySet( let's unify this ...
4 years, 1 month ago (2016-11-08 18:24:32 UTC) #24
dproy
https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2444783002/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode515 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:515: network_instrumentation::initialResourcePrioritySet( On 2016/11/08 18:24:32, caseq wrote: > let's unify ...
4 years, 1 month ago (2016-11-09 20:44:00 UTC) #25
dproy
mkwst@ - Adding you for owner review.
4 years, 1 month ago (2016-11-09 20:57:07 UTC) #27
Mike West
LGTM.
4 years, 1 month ago (2016-11-11 08:10:34 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2444783002/120001
4 years, 1 month ago (2016-11-11 16:25:11 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/104147)
4 years, 1 month ago (2016-11-11 16:33:40 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2444783002/120001
4 years, 1 month ago (2016-11-11 19:16:35 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/233590)
4 years, 1 month ago (2016-11-11 19:33:13 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2444783002/140001
4 years, 1 month ago (2016-11-11 21:54:54 UTC) #40
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-12 02:21:39 UTC) #41
commit-bot: I haz the power
4 years, 1 month ago (2016-11-12 02:26:03 UTC) #43
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/7624dfa8d32243a7f631975c825ef1c9db6b67fb
Cr-Commit-Position: refs/heads/master@{#431747}

Powered by Google App Engine
This is Rietveld 408576698