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

Issue 14646006: Inject timestamps to resource messages. (Closed)

Created:
7 years, 7 months ago by eustas
Modified:
7 years, 6 months ago
CC:
chromium-reviews, vsevik, yurys, joi+watch-content_chromium.org, darin-cc_chromium.org, pfeldman
Visibility:
Public.

Description

Inject renderer receive message time into resource notifications. Previously time calculations based on "now"-time taken when renderer processed resource notification messages. Renderer time is calculated by interpolation based on taken values. Because of long JS evaluation or heavy rendering, "renderer" time range might be skewed. To fix situation, "renderer" time should be taken when IPC messages are processed by renderer IO thread. This patch adds message filter that supplies aforementioned messages with timestamps. BUG=223836 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202870

Patch Set 1 #

Patch Set 2 : Make filter constructor explicit; added missing changes in resource_dispatcher.h #

Patch Set 3 : Reuploaded #

Patch Set 4 : Rebased #

Total comments: 4

Patch Set 5 : Resolved review comments. #

Total comments: 3

Patch Set 6 : Fixed nit. Added distinct ChildResourceFilter back. #

Total comments: 4

Patch Set 7 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -4 lines) Patch
A content/common/child_resource_message_filter.h View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
A content/common/child_resource_message_filter.cc View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
M content/common/child_thread.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M content/common/child_thread.cc View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M content/common/resource_dispatcher.h View 1 2 3 4 5 6 3 chunks +13 lines, -0 lines 0 comments Download
M content/common/resource_dispatcher.cc View 1 2 3 4 5 6 5 chunks +13 lines, -4 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
eustas
Preview: injection code moved to DevToolsAgentFilter
7 years, 7 months ago (2013-04-30 14:17:44 UTC) #1
eustas
On 2013/04/30 14:17:44, eustas.ru wrote: > Preview: injection code moved to DevToolsAgentFilter to Charlie: John ...
7 years, 7 months ago (2013-05-17 09:10:52 UTC) #2
Charlie Reis
On 2013/05/17 09:10:52, eustas.ru wrote: > On 2013/04/30 14:17:44, eustas.ru wrote: > > Preview: injection ...
7 years, 7 months ago (2013-05-17 19:16:04 UTC) #3
eustas
to Charlie: Actually James had given lgtm for draft of this patch https://codereview.chromium.org/14359004/ and Pavel ...
7 years, 7 months ago (2013-05-23 08:06:14 UTC) #4
James Simonsen
still lgtm
7 years, 7 months ago (2013-05-23 18:39:20 UTC) #5
Charlie Reis
I don't understand why this is in the DevToolsAgentFilter. That's a strange dependency to have ...
7 years, 7 months ago (2013-05-23 20:13:11 UTC) #6
eustas
Only "renderer" child threads could benefit on "patching" resource messages. So adding it to DevToolsAgentFilter ...
7 years, 7 months ago (2013-05-24 15:22:28 UTC) #7
Charlie Reis
Darin, can I get your thoughts on this? Seems like we might want it in ...
7 years, 7 months ago (2013-05-24 16:17:08 UTC) #8
eustas
Added distinct ChildResourceFilter back. So both ways to inject timestamps could be seen in different ...
7 years, 7 months ago (2013-05-27 12:03:57 UTC) #9
jam
On 2013/05/24 16:17:08, creis wrote: > Darin, can I get your thoughts on this? Seems ...
7 years, 6 months ago (2013-05-28 15:59:24 UTC) #10
jam
looking at the whole change: why are you adding a new filter instead of dispatching ...
7 years, 6 months ago (2013-05-28 16:02:28 UTC) #11
jam
ok looked through the bug and see why you're doing stuff on the IO thread. ...
7 years, 6 months ago (2013-05-28 16:06:44 UTC) #12
eustas
"set_io_timestamp" tasks are dispatched in the same message loop as ResourceDispatcher IPC messages. So tasks ...
7 years, 6 months ago (2013-05-28 16:20:32 UTC) #13
jam
On 2013/05/28 16:20:32, eustas.ru wrote: > "set_io_timestamp" tasks are dispatched in the same message loop ...
7 years, 6 months ago (2013-05-28 17:54:50 UTC) #14
eustas
Oh, bug title is the first reporter impression. Actually browser timing for both request start ...
7 years, 6 months ago (2013-05-28 18:23:35 UTC) #15
jam
On 2013/05/28 18:23:35, eustas.ru wrote: > Oh, bug title is the first reporter impression. > ...
7 years, 6 months ago (2013-05-28 18:31:53 UTC) #16
eustas
1) Coherence. Historically, series of "synchronously" taken timestamps taken on different processes could be shifted ...
7 years, 6 months ago (2013-05-28 19:25:41 UTC) #17
jam
lgtm, thanks for the explanation and for bearing through all my questions! https://codereview.chromium.org/14646006/diff/29001/content/common/resource_dispatcher.h File content/common/resource_dispatcher.h ...
7 years, 6 months ago (2013-05-28 23:00:15 UTC) #18
eustas
https://codereview.chromium.org/14646006/diff/29001/content/common/resource_dispatcher.h File content/common/resource_dispatcher.h (right): https://codereview.chromium.org/14646006/diff/29001/content/common/resource_dispatcher.h#newcode166 content/common/resource_dispatcher.h:166: // then current time is returned. Saved timestamp is ...
7 years, 6 months ago (2013-05-29 08:31:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eustas@chromium.org/14646006/41001
7 years, 6 months ago (2013-05-29 11:44:36 UTC) #20
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 14:47:19 UTC) #21
Message was sent while issue was closed.
Change committed as 202870

Powered by Google App Engine
This is Rietveld 408576698