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

Issue 15265004: Fix ResourceLoadTiming resolution lose issue. (Closed)

Created:
7 years, 7 months ago by Pan
Modified:
7 years, 7 months ago
CC:
blink-reviews, jamesr, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, lushnikov+blink_chromium.org, abarth-chromium, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, aandrey+blink_chromium.org, jeez
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fix ResourceLoadTiming resolution lose issue. Currently, WebCore::ResourceLoadTiming has a base requestTime with type "double", others are millisecond deltas with type "int", it forces following timestamps align with the base time, such as dnsStart. So in glue(webkit/glue/weburlloader_impl.cc), we had to calculate delta between the real dnsStart and its base time request_start, round to a int value in millisecond, while, lose the resolution. It may cause timestamps overlap or tricky negative values. This change removes all "int" deltas and use monotonicallyIncreasing "double" in second instead. To satisfy test result, we need to add new fields in blink and then switch chrome use the new fields, at last go back blink to remove old fields. This change is the first step and use a macro to guard the new added field. Contributed by pan.deng@intel.com BUG=242452 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150952

Patch Set 1 #

Total comments: 2

Patch Set 2 : Step1 #

Total comments: 2

Patch Set 3 : Add inline help function to satisfy inspector #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -10 lines) Patch
M Source/WebKit/chromium/src/WebURLLoadTiming.cpp View 1 2 chunks +112 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorResourceAgent.cpp View 1 2 2 chunks +18 lines, -0 lines 0 comments Download
M Source/core/page/PerformanceResourceTiming.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/page/PerformanceResourceTiming.cpp View 1 9 chunks +59 lines, -1 line 0 comments Download
M Source/core/page/PerformanceTiming.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/page/PerformanceTiming.cpp View 1 11 chunks +72 lines, -1 line 0 comments Download
M Source/core/platform/network/ResourceLoadTiming.h View 1 2 2 chunks +42 lines, -8 lines 0 comments Download
M Source/core/platform/network/ResourceLoadTiming.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M public/platform/WebURLLoadTiming.h View 1 2 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Pan
Please review. Change in glue should happen at the same time, https://codereview.chromium.org/15552003/ I have no ...
7 years, 7 months ago (2013-05-21 09:36:36 UTC) #1
eustas
https://codereview.chromium.org/15265004/diff/1/Source/core/page/PerformanceResourceTiming.cpp File Source/core/page/PerformanceResourceTiming.cpp (right): https://codereview.chromium.org/15265004/diff/1/Source/core/page/PerformanceResourceTiming.cpp#newcode123 Source/core/page/PerformanceResourceTiming.cpp:123: if (!m_timing || m_timing->dnsStart == 0.0) Doesn't both checks ...
7 years, 7 months ago (2013-05-21 09:43:38 UTC) #2
Pan
https://codereview.chromium.org/15265004/diff/1/Source/core/page/PerformanceResourceTiming.cpp File Source/core/page/PerformanceResourceTiming.cpp (right): https://codereview.chromium.org/15265004/diff/1/Source/core/page/PerformanceResourceTiming.cpp#newcode123 Source/core/page/PerformanceResourceTiming.cpp:123: if (!m_timing || m_timing->dnsStart == 0.0) On 2013/05/21 09:43:38, ...
7 years, 7 months ago (2013-05-21 12:28:01 UTC) #3
James Simonsen
Tue, May 21, 2013 at 2:36 AM, <pan.deng@intel.com> wrote: > Change in glue should happen ...
7 years, 7 months ago (2013-05-21 17:42:30 UTC) #4
Pan
On 2013/05/21 17:42:30, James Simonsen wrote: > Tue, May 21, 2013 at 2:36 AM, <mailto:pan.deng@intel.com> ...
7 years, 7 months ago (2013-05-22 08:17:05 UTC) #5
Pan
please review :) thanks! Pan
7 years, 7 months ago (2013-05-22 09:14:00 UTC) #6
abarth-chromium
LGTM with one nit https://codereview.chromium.org/15265004/diff/7001/Source/core/inspector/InspectorResourceAgent.cpp File Source/core/inspector/InspectorResourceAgent.cpp (right): https://codereview.chromium.org/15265004/diff/7001/Source/core/inspector/InspectorResourceAgent.cpp#newcode125 Source/core/inspector/InspectorResourceAgent.cpp:125: .setReceiveHeadersEnd((timing.receiveHeadersEnd - requestTime) * 1000) ...
7 years, 7 months ago (2013-05-22 18:19:04 UTC) #7
James Simonsen
https://codereview.chromium.org/15265004/diff/7001/Source/core/inspector/InspectorResourceAgent.cpp File Source/core/inspector/InspectorResourceAgent.cpp (right): https://codereview.chromium.org/15265004/diff/7001/Source/core/inspector/InspectorResourceAgent.cpp#newcode125 Source/core/inspector/InspectorResourceAgent.cpp:125: .setReceiveHeadersEnd((timing.receiveHeadersEnd - requestTime) * 1000) Alternatively, why not just ...
7 years, 7 months ago (2013-05-22 21:36:58 UTC) #8
Pan
On 2013/05/22 21:36:58, James Simonsen wrote: > https://codereview.chromium.org/15265004/diff/7001/Source/core/inspector/InspectorResourceAgent.cpp > File Source/core/inspector/InspectorResourceAgent.cpp (right): > > https://codereview.chromium.org/15265004/diff/7001/Source/core/inspector/InspectorResourceAgent.cpp#newcode125 ...
7 years, 7 months ago (2013-05-23 03:03:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pan.deng@intel.com/15265004/6002
7 years, 7 months ago (2013-05-23 03:07:17 UTC) #10
commit-bot: I haz the power
7 years, 7 months ago (2013-05-23 03:51:42 UTC) #11
Message was sent while issue was closed.
Change committed as 150952

Powered by Google App Engine
This is Rietveld 408576698