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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp

Issue 2712833002: DevTools: Show decoded body length for network requests on timeline. (Closed)
Patch Set: Created 3 years, 10 months 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: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
index 3ac619e8d1f71a7b3a8008d3ea1f66dd82759481..66e55a8d11e2110fa27ee9974dd6736a6af32b11 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -539,8 +539,10 @@ void FrameFetchContext::dispatchDidLoadResourceFromMemoryCache(
if (resource->encodedSize() > 0)
dispatchDidReceiveData(identifier, 0, resource->encodedSize());
- TRACE_EVENT1("devtools.timeline", "ResourceFinish", "data",
- InspectorResourceFinishEvent::data(identifier, 0, false, 0));
+ TRACE_EVENT1(
+ "devtools.timeline", "ResourceFinish", "data",
+ InspectorResourceFinishEvent::data(
+ identifier, 0, false, 0, resource->response().decodedBodyLength()));
dispatchDidFinishLoading(identifier, 0, 0);
}

Powered by Google App Engine
This is Rietveld 408576698