Changeset 220568 in webkit
- Timestamp:
- Aug 10, 2017 5:41:09 PM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r220556 r220568 1 2017-08-10 John Wilander <wilander@apple.com> 2 3 Resource Load Statistics: Add significant figures to telemetry calls 4 https://bugs.webkit.org/show_bug.cgi?id=175442 5 <rdar://problem/33834834> 6 7 Reviewed by Brent Fulgham. 8 9 With this change, logged values are allowed to have 3 significant figures 10 as opposed to today's 0 which is wrong. 11 12 * UIProcess/WebResourceLoadStatisticsTelemetry.cpp: 13 (WebKit::submitTopList): 14 (WebKit::WebResourceLoadStatisticsTelemetry::calculateAndSubmit): 15 1 16 2017-08-10 Mark Lam <mark.lam@apple.com> 2 17 -
trunk/Source/WebKit/UIProcess/WebResourceLoadStatisticsTelemetry.cpp
r219312 r220568 42 42 43 43 const unsigned minimumPrevalentResourcesForTelemetry = 3; 44 const unsigned significantFiguresForLoggedValues = 3; 44 45 static bool notifyPagesWhenTelemetryWasCaptured = false; 45 46 … … 171 172 172 173 webPageProxy.logDiagnosticMessageWithValue(DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey(), descriptionPreamble + "PrevalentResourcesWithUserInteraction", 173 topPrevalentResourcesWithUserInteraction, 0, ShouldSample::No);174 topPrevalentResourcesWithUserInteraction, significantFiguresForLoggedValues, ShouldSample::No); 174 175 webPageProxy.logDiagnosticMessageWithValue(DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey(), descriptionPreamble + "SubframeUnderTopFrameOrigins", 175 topSubframeUnderTopFrameOrigins, 0, ShouldSample::No);176 topSubframeUnderTopFrameOrigins, significantFiguresForLoggedValues, ShouldSample::No); 176 177 webPageProxy.logDiagnosticMessageWithValue(DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey(), descriptionPreamble + "SubresourceUnderTopFrameOrigins", 177 topSubresourceUnderTopFrameOrigins, 0, ShouldSample::No);178 topSubresourceUnderTopFrameOrigins, significantFiguresForLoggedValues, ShouldSample::No); 178 179 webPageProxy.logDiagnosticMessageWithValue(DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey(), descriptionPreamble + "SubresourceUniqueRedirectsTo", 179 topSubresourceUniqueRedirectsTo, 0, ShouldSample::No);180 topSubresourceUniqueRedirectsTo, significantFiguresForLoggedValues, ShouldSample::No); 180 181 webPageProxy.logDiagnosticMessageWithValue(DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey(), descriptionPreamble + "NumberOfTimesDataRecordsRemoved", 181 topNumberOfTimesDataRecordsRemoved, 0, ShouldSample::No);182 topNumberOfTimesDataRecordsRemoved, significantFiguresForLoggedValues, ShouldSample::No); 182 183 } 183 184 … … 258 259 } 259 260 260 webPageProxy->logDiagnosticMessageWithValue(DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey(), ASCIILiteral("totalNumberOfPrevalentResources"), sortedPrevalentResources.size(), 0, ShouldSample::No);261 webPageProxy->logDiagnosticMessageWithValue(DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey(), ASCIILiteral("totalNumberOfPrevalentResourcesWithUserInteraction"), prevalentResourcesDaysSinceUserInteraction.size(), 0, ShouldSample::No);261 webPageProxy->logDiagnosticMessageWithValue(DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey(), ASCIILiteral("totalNumberOfPrevalentResources"), sortedPrevalentResources.size(), significantFiguresForLoggedValues, ShouldSample::No); 262 webPageProxy->logDiagnosticMessageWithValue(DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey(), ASCIILiteral("totalNumberOfPrevalentResourcesWithUserInteraction"), prevalentResourcesDaysSinceUserInteraction.size(), significantFiguresForLoggedValues, ShouldSample::No); 262 263 263 264 if (prevalentResourcesDaysSinceUserInteraction.size() > 0) 264 webPageProxy->logDiagnosticMessageWithValue(DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey(), ASCIILiteral("topPrevalentResourceWithUserInteractionDaysSinceUserInteraction"), prevalentResourcesDaysSinceUserInteraction[0], 0, ShouldSample::No);265 webPageProxy->logDiagnosticMessageWithValue(DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey(), ASCIILiteral("topPrevalentResourceWithUserInteractionDaysSinceUserInteraction"), prevalentResourcesDaysSinceUserInteraction[0], significantFiguresForLoggedValues, ShouldSample::No); 265 266 if (prevalentResourcesDaysSinceUserInteraction.size() > 1) 266 webPageProxy->logDiagnosticMessageWithValue(DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey(), ASCIILiteral("medianPrevalentResourcesWithUserInteractionDaysSinceUserInteraction"), median(prevalentResourcesDaysSinceUserInteraction), 0, ShouldSample::No);267 webPageProxy->logDiagnosticMessageWithValue(DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey(), ASCIILiteral("medianPrevalentResourcesWithUserInteractionDaysSinceUserInteraction"), median(prevalentResourcesDaysSinceUserInteraction), significantFiguresForLoggedValues, ShouldSample::No); 267 268 268 269 submitTopLists(sortedPrevalentResources, sortedPrevalentResourcesWithoutUserInteraction, *webPageProxy);
Note: See TracChangeset
for help on using the changeset viewer.