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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp

Issue 2712833002: DevTools: Show decoded body length for network requests on timeline. (Closed)
Patch Set: rebaseline 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/inspector/InspectorTraceEvents.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp b/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp
index b2db6fe39c8431571c9c5412f21d3494fe957d10..21d29b5f4219303edcf7e58c2c7d0649fe95dc51 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp
@@ -596,13 +596,15 @@ std::unique_ptr<TracedValue> InspectorResourceFinishEvent::data(
unsigned long identifier,
double finishTime,
bool didFail,
- int64_t encodedDataLength) {
+ int64_t encodedDataLength,
+ int64_t decodedBodyLength) {
String requestId = IdentifiersFactory::requestId(identifier);
std::unique_ptr<TracedValue> value = TracedValue::create();
value->setString("requestId", requestId);
value->setBoolean("didFail", didFail);
value->setDouble("encodedDataLength", encodedDataLength);
+ value->setDouble("decodedBodyLength", decodedBodyLength);
if (finishTime)
value->setDouble("finishTime", finishTime);
return value;

Powered by Google App Engine
This is Rietveld 408576698