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

Issue 14359004: Inject renderer recieve message time into resource notifications. (Closed)

Created:
7 years, 8 months ago by eustas
Modified:
7 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
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

Patch Set 1 #

Patch Set 2 : Less hacky timestamp injection. #

Total comments: 4

Patch Set 3 : Change member name: task_tunner -> main_thread_task_runner_ #

Patch Set 4 : Added description comment #

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

Messages

Total messages: 8 (0 generated)
eustas
7 years, 8 months ago (2013-04-23 13:41:25 UTC) #1
James Simonsen
Thanks for taking this on! https://codereview.chromium.org/14359004/diff/3001/content/common/child_resource_message_filter.cc File content/common/child_resource_message_filter.cc (right): https://codereview.chromium.org/14359004/diff/3001/content/common/child_resource_message_filter.cc#newcode15 content/common/child_resource_message_filter.cc:15: : task_runner_(base::ThreadTaskRunnerHandle::Get()), I believe ...
7 years, 8 months ago (2013-04-26 23:02:28 UTC) #2
eustas
https://codereview.chromium.org/14359004/diff/3001/content/common/child_resource_message_filter.cc File content/common/child_resource_message_filter.cc (right): https://codereview.chromium.org/14359004/diff/3001/content/common/child_resource_message_filter.cc#newcode15 content/common/child_resource_message_filter.cc:15: : task_runner_(base::ThreadTaskRunnerHandle::Get()), On 2013/04/26 23:02:28, James Simonsen wrote: > ...
7 years, 7 months ago (2013-04-29 08:59:03 UTC) #3
James Simonsen
lgtm (from a non-OWNER) On 2013/04/29 08:59:03, eustas.ru wrote: > https://codereview.chromium.org/14359004/diff/3001/content/common/child_resource_message_filter.cc > File content/common/child_resource_message_filter.cc (right): ...
7 years, 7 months ago (2013-04-29 21:12:56 UTC) #4
eustas
On 2013/04/29 21:12:56, James Simonsen wrote: > lgtm (from a non-OWNER) > > On 2013/04/29 ...
7 years, 7 months ago (2013-04-30 13:07:39 UTC) #5
Charlie Reis
I assume you're looking for an owners review? I'm not very familiar with the message ...
7 years, 7 months ago (2013-04-30 16:27:06 UTC) #6
pfeldman
I suggested using devtools_agent_filter offline (in order to limit amount of filters). And there is ...
7 years, 7 months ago (2013-04-30 16:29:51 UTC) #7
eustas
7 years, 7 months ago (2013-04-30 16:44:04 UTC) #8
On 2013/04/30 16:29:51, pfeldman wrote:
> I suggested using devtools_agent_filter offline (in order to limit amount of
> filters). And there is a straw man for that here:
> https://codereview.chromium.org/14646006/.
> 
> @eustas: which one should we be looking at?

I think that we should look at https://codereview.chromium.org/14646006/

I'm going to update its description now.

Powered by Google App Engine
This is Rietveld 408576698