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

Unified Diff: third_party/WebKit/Source/platform/instrumentation/inspector/PlatformInspectorTraceEvents.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/platform/instrumentation/inspector/PlatformInspectorTraceEvents.cpp
diff --git a/third_party/WebKit/Source/platform/instrumentation/inspector/PlatformInspectorTraceEvents.cpp b/third_party/WebKit/Source/platform/instrumentation/inspector/PlatformInspectorTraceEvents.cpp
index 578589280fd419a5a2610589fb320126bda05c90..04db190f16031f8426f0b29aafac33048bdd0215 100644
--- a/third_party/WebKit/Source/platform/instrumentation/inspector/PlatformInspectorTraceEvents.cpp
+++ b/third_party/WebKit/Source/platform/instrumentation/inspector/PlatformInspectorTraceEvents.cpp
@@ -33,8 +33,9 @@ void recordTiming(const ResourceLoadTiming& timing, TracedValue* value) {
timing.calculateMillisecondDelta(timing.sendStart()));
value->setDouble("sendEnd",
timing.calculateMillisecondDelta(timing.sendEnd()));
- value->setDouble("receiveHeadersEnd", timing.calculateMillisecondDelta(
- timing.receiveHeadersEnd()));
+ value->setDouble(
+ "receiveHeadersEnd",
+ timing.calculateMillisecondDelta(timing.receiveHeadersEnd()));
value->setDouble("pushStart", timing.pushStart());
value->setDouble("pushEnd", timing.pushEnd());
}
@@ -73,11 +74,13 @@ std::unique_ptr<TracedValue> InspectorResourceFinishEvent::data(
unsigned long identifier,
double finishTime,
bool didFail,
- int64_t encodedDataLength) {
+ int64_t encodedDataLength,
+ int64_t decodedBodyLength) {
std::unique_ptr<TracedValue> value = TracedValue::create();
value->setString("requestId", String::number(identifier));
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