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

Unified Diff: content/child/resource_dispatcher.cc

Issue 1410153009: DevTools: Make network events continuous on Timeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index f9eae9aa6f43db5cd7cf638afa9a0af6fbace516..3a36fe783dd60d526e14193a979afa8d7f7e1c99 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -150,7 +150,8 @@ void ResourceDispatcher::OnUploadProgress(int request_id, int64 position,
void ResourceDispatcher::OnReceivedResponse(
int request_id, const ResourceResponseHead& response_head) {
- TRACE_EVENT0("loader", "ResourceDispatcher::OnReceivedResponse");
+ TRACE_EVENT0("loader,devtools.timeline",
+ "ResourceDispatcher::OnReceivedResponse");
PendingRequestInfo* request_info = GetPendingRequestInfo(request_id);
if (!request_info)
return;
@@ -226,7 +227,8 @@ void ResourceDispatcher::OnReceivedData(int request_id,
int data_offset,
int data_length,
int encoded_data_length) {
- TRACE_EVENT0("loader", "ResourceDispatcher::OnReceivedData");
+ TRACE_EVENT0("loader,devtools.timeline",
+ "ResourceDispatcher::OnReceivedData");
DCHECK_GT(data_length, 0);
PendingRequestInfo* request_info = GetPendingRequestInfo(request_id);
bool send_ack = true;
@@ -347,7 +349,8 @@ void ResourceDispatcher::FollowPendingRedirect(
void ResourceDispatcher::OnRequestComplete(
int request_id,
const ResourceMsg_RequestCompleteData& request_complete_data) {
- TRACE_EVENT0("loader", "ResourceDispatcher::OnRequestComplete");
+ TRACE_EVENT0("loader,devtools.timeline",
+ "ResourceDispatcher::OnRequestComplete");
PendingRequestInfo* request_info = GetPendingRequestInfo(request_id);
if (!request_info)

Powered by Google App Engine
This is Rietveld 408576698