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

Issue 914403003: cc: Add main frame timing info to frame timing tracker. (Closed)

Created:
5 years, 10 months ago by vmpstr
Modified:
5 years, 8 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, scheduler-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Add main frame timing info to frame timing tracker. This patch adds main frame timing info to frame timing tracker. The main frame start time is the timestamp of the frame in which we did a SendBeginMainFrame. The "end" of the frame is the timestamp of the beginning of the frame that follows the frame in which we activated. We report start and end_time on each of the frames. If a main frame is aborted, then we don't report the time unless we aborted due to the fact that there were no changes (ie a "successful" frame). R=danakj, brianderson, mpb@chromium.org Committed: https://crrev.com/d704c875efd1204a4128d66685fc95b204dc353d Cr-Commit-Position: refs/heads/master@{#323806}

Patch Set 1 #

Total comments: 3

Patch Set 2 : tests #

Total comments: 7

Patch Set 3 : update #

Total comments: 5

Patch Set 4 : update #

Total comments: 2

Patch Set 5 : update #

Total comments: 15

Patch Set 6 : update #

Total comments: 7

Patch Set 7 : #

Total comments: 19

Patch Set 8 : #

Patch Set 9 : comment #

Patch Set 10 : #

Total comments: 3

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -53 lines) Patch
M cc/debug/frame_timing_tracker.h View 1 2 3 chunks +25 lines, -1 line 0 comments Download
M cc/debug/frame_timing_tracker.cc View 1 2 2 chunks +43 lines, -4 lines 0 comments Download
M cc/debug/frame_timing_tracker_unittest.cc View 1 2 6 chunks +139 lines, -36 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +29 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -1 line 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +20 lines, -1 line 0 comments Download

Messages

Total messages: 38 (5 generated)
vmpstr
Please take a look. I'm gonna make some unittests, but if you have some changes ...
5 years, 10 months ago (2015-02-11 22:42:49 UTC) #1
enne (OOO)
https://codereview.chromium.org/914403003/diff/20001/cc/debug/frame_timing_tracker.h File cc/debug/frame_timing_tracker.h (right): https://codereview.chromium.org/914403003/diff/20001/cc/debug/frame_timing_tracker.h#newcode43 cc/debug/frame_timing_tracker.h:43: base::TimeDelta duration; It's a little weird to have a ...
5 years, 10 months ago (2015-02-12 23:41:07 UTC) #4
mithro-old
5 years, 10 months ago (2015-02-27 02:21:11 UTC) #6
vmpstr
PTAL https://codereview.chromium.org/914403003/diff/20001/cc/debug/frame_timing_tracker.h File cc/debug/frame_timing_tracker.h (right): https://codereview.chromium.org/914403003/diff/20001/cc/debug/frame_timing_tracker.h#newcode43 cc/debug/frame_timing_tracker.h:43: base::TimeDelta duration; On 2015/02/12 23:41:07, enne wrote: > ...
5 years, 9 months ago (2015-03-03 18:56:46 UTC) #7
enne (OOO)
Sorry for the O_o? but I really don't quite follow what these values are supposed ...
5 years, 9 months ago (2015-03-06 00:00:58 UTC) #8
vmpstr
PTAL. An explanation is below. Let me know if it's unclear... Also let me know ...
5 years, 9 months ago (2015-03-06 00:59:53 UTC) #9
enne (OOO)
https://codereview.chromium.org/914403003/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/914403003/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode2097 cc/trees/layer_tree_host_impl.cc:2097: client_->GetNextBeginImplFrameTimeIfRequested() - main_frame_time_; On 2015/03/03 18:56:46, vmpstr wrote: > ...
5 years, 9 months ago (2015-03-06 21:27:56 UTC) #10
enne (OOO)
Given the strange spec decisions, I think is implemented correctly. https://codereview.chromium.org/914403003/diff/80001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/914403003/diff/80001/cc/trees/thread_proxy.cc#newcode694 ...
5 years, 9 months ago (2015-03-10 00:32:29 UTC) #11
mithro-old
Hi vmpstr, Just going through my code review backlog, sorry for taking so long to ...
5 years, 9 months ago (2015-03-11 04:01:33 UTC) #12
vmpstr
Please take another look. Sorry for the delay in updating the review. I think I've ...
5 years, 9 months ago (2015-03-16 18:36:43 UTC) #13
enne (OOO)
mithro: can you take a look at this? I want to make sure your concerns ...
5 years, 9 months ago (2015-03-17 21:24:04 UTC) #14
vmpstr
On 2015/03/17 21:24:04, enne wrote: > mithro: can you take a look at this? I ...
5 years, 9 months ago (2015-03-20 00:20:30 UTC) #15
mithro-old
Hi vmpstr, Sorry about the delay in reviewing. As mentioned in the previous email, we ...
5 years, 9 months ago (2015-03-20 02:17:54 UTC) #16
vmpstr
I will be working on addressing your comments. In the mean time please see my ...
5 years, 9 months ago (2015-03-20 18:47:26 UTC) #17
vmpstr
New patch is up. Please take a look.
5 years, 9 months ago (2015-03-20 19:45:43 UTC) #18
brianderson
https://codereview.chromium.org/914403003/diff/120001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/914403003/diff/120001/cc/trees/thread_proxy.cc#newcode696 cc/trees/thread_proxy.cc:696: impl().last_begin_main_frame_args = begin_main_frame_state->begin_frame_args; If main_frame_before_activation_enabled is true in SchedulerSettings, ...
5 years, 9 months ago (2015-03-20 21:14:06 UTC) #19
vmpstr
https://codereview.chromium.org/914403003/diff/120001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/914403003/diff/120001/cc/trees/thread_proxy.cc#newcode696 cc/trees/thread_proxy.cc:696: impl().last_begin_main_frame_args = begin_main_frame_state->begin_frame_args; On 2015/03/20 21:14:05, brianderson wrote: > ...
5 years, 9 months ago (2015-03-20 22:31:27 UTC) #20
brianderson
https://codereview.chromium.org/914403003/diff/120001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/914403003/diff/120001/cc/trees/thread_proxy.cc#newcode696 cc/trees/thread_proxy.cc:696: impl().last_begin_main_frame_args = begin_main_frame_state->begin_frame_args; On 2015/03/20 22:31:27, vmpstr wrote: > ...
5 years, 9 months ago (2015-03-20 23:01:58 UTC) #21
mithro-old
Hi vmpstr, Looks like Brian has pointed you in the right direction. Pretty much just ...
5 years, 9 months ago (2015-03-23 00:15:08 UTC) #22
vmpstr
PTAL https://codereview.chromium.org/914403003/diff/100001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/914403003/diff/100001/cc/trees/layer_tree_host_impl.cc#newcode285 cc/trees/layer_tree_host_impl.cc:285: RecordMainFrameTiming(); On 2015/03/23 00:15:08, mithro wrote: > On ...
5 years, 9 months ago (2015-03-23 20:26:43 UTC) #23
mithro-old
https://codereview.chromium.org/914403003/diff/100001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/914403003/diff/100001/cc/trees/layer_tree_host_impl.cc#newcode285 cc/trees/layer_tree_host_impl.cc:285: RecordMainFrameTiming(); Despite having worked in this area for a ...
5 years, 9 months ago (2015-03-24 07:37:42 UTC) #24
vmpstr
I think this patch does the correct thing (modulo naming nits). Also, I understand the ...
5 years, 9 months ago (2015-03-24 18:02:15 UTC) #25
mithro-old
I've ask brainderson to take a close look and see what he thinks.
5 years, 9 months ago (2015-03-25 11:08:08 UTC) #26
brianderson
lgtm https://codereview.chromium.org/914403003/diff/180001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/914403003/diff/180001/cc/layers/layer_impl.cc#newcode1048 cc/layers/layer_impl.cc:1048: for (const auto& request : frame_timing_requests_) To avoid ...
5 years, 9 months ago (2015-03-25 19:46:15 UTC) #27
vmpstr
https://codereview.chromium.org/914403003/diff/180001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/914403003/diff/180001/cc/layers/layer_impl.cc#newcode1048 cc/layers/layer_impl.cc:1048: for (const auto& request : frame_timing_requests_) On 2015/03/25 19:46:15, ...
5 years, 9 months ago (2015-03-26 21:02:22 UTC) #28
brianderson
https://codereview.chromium.org/914403003/diff/180001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/914403003/diff/180001/cc/layers/layer_impl.cc#newcode1048 cc/layers/layer_impl.cc:1048: for (const auto& request : frame_timing_requests_) On 2015/03/26 21:02:22, ...
5 years, 9 months ago (2015-03-26 21:14:18 UTC) #29
vmpstr
mithro@, enne@, could you both take another look at this?
5 years, 8 months ago (2015-04-01 17:01:24 UTC) #30
mithro-old
On 2015/04/01 17:01:24, vmpstr wrote: > mithro@, enne@, could you both take another look at ...
5 years, 8 months ago (2015-04-02 02:14:35 UTC) #31
enne (OOO)
lgtm
5 years, 8 months ago (2015-04-02 20:43:35 UTC) #32
vmpstr
On 2015/04/02 02:14:35, mithro wrote: > On 2015/04/01 17:01:24, vmpstr wrote: > > mithro@, enne@, ...
5 years, 8 months ago (2015-04-03 18:28:46 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/914403003/200001
5 years, 8 months ago (2015-04-03 18:29:35 UTC) #36
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 8 months ago (2015-04-03 20:30:02 UTC) #37
commit-bot: I haz the power
5 years, 8 months ago (2015-04-03 20:40:46 UTC) #38
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/d704c875efd1204a4128d66685fc95b204dc353d
Cr-Commit-Position: refs/heads/master@{#323806}

Powered by Google App Engine
This is Rietveld 408576698