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

Issue 11827009: cc: add PaintTimeCounter to keep track of per frame paint time (Closed)

Created:
7 years, 11 months ago by egraether
Modified:
7 years, 11 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@ring
Visibility:
Public.

Description

cc: add PaintTimeCounter to keep track of per frame paint time This change adds the new PaintTimeCounter class to the LayerTreeHostImpl. It uses a RingBuffer to keep track of per frame paint times, which will be visualized in continuous painting mode. depends on: https://codereview.chromium.org/11817011 BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177332

Patch Set 1 #

Patch Set 2 : updated to new RingBuffer #

Total comments: 7

Patch Set 3 : Resolved nits #

Patch Set 4 : updated to use size_t #

Patch Set 5 : updated to use base::TimeDelta #

Total comments: 12

Patch Set 6 : resolved nits, TimeDelta throughout the API #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -0 lines) Patch
M cc/cc.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layer_tree_host.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/layer_tree_host_impl.h View 1 2 3 4 4 chunks +5 lines, -0 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
A cc/paint_time_counter.h View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
A cc/paint_time_counter.cc View 1 2 3 4 5 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
egraether
7 years, 11 months ago (2013-01-09 02:09:15 UTC) #1
nduca
Reveman can review this. I'll rubber stamp when he is happy.
7 years, 11 months ago (2013-01-10 20:05:17 UTC) #2
nduca
+reveman
7 years, 11 months ago (2013-01-10 20:05:33 UTC) #3
egraether
On 2013/01/10 20:05:33, nduca wrote: > +reveman @reveman Please wait with the review until this ...
7 years, 11 months ago (2013-01-10 20:11:04 UTC) #4
egraether
On 2013/01/10 20:11:04, egraether wrote: > On 2013/01/10 20:05:33, nduca wrote: > > +reveman > ...
7 years, 11 months ago (2013-01-11 02:35:30 UTC) #5
reveman
lgtm with nits https://codereview.chromium.org/11827009/diff/11001/cc/paint_time_counter.cc File cc/paint_time_counter.cc (right): https://codereview.chromium.org/11827009/diff/11001/cc/paint_time_counter.cc#newcode38 cc/paint_time_counter.cc:38: void PaintTimeCounter::GetMinAndMaxPaintTime(double& min, double& max) const ...
7 years, 11 months ago (2013-01-11 16:10:49 UTC) #6
danakj
https://codereview.chromium.org/11827009/diff/11001/cc/paint_time_counter.cc File cc/paint_time_counter.cc (right): https://codereview.chromium.org/11827009/diff/11001/cc/paint_time_counter.cc#newcode42 cc/paint_time_counter.cc:42: for (int i = ring_buffer_.BufferSize() - 1; i > ...
7 years, 11 months ago (2013-01-11 16:39:09 UTC) #7
egraether
The previous commit took longer to commit (https://codereview.chromium.org/11817011), so there have been some changes to ...
7 years, 11 months ago (2013-01-16 19:31:56 UTC) #8
reveman
https://codereview.chromium.org/11827009/diff/25001/cc/paint_time_counter.h File cc/paint_time_counter.h (right): https://codereview.chromium.org/11827009/diff/25001/cc/paint_time_counter.h#newcode27 cc/paint_time_counter.h:27: void GetMinAndMaxPaintTimeInMilliseconds(double* min, double* max) const; On 2013/01/16 19:31:56, ...
7 years, 11 months ago (2013-01-16 19:56:04 UTC) #9
egraether
https://codereview.chromium.org/11827009/diff/25001/cc/paint_time_counter.h File cc/paint_time_counter.h (right): https://codereview.chromium.org/11827009/diff/25001/cc/paint_time_counter.h#newcode27 cc/paint_time_counter.h:27: void GetMinAndMaxPaintTimeInMilliseconds(double* min, double* max) const; On 2013/01/16 19:56:04, ...
7 years, 11 months ago (2013-01-16 22:14:12 UTC) #10
reveman
lgtm with nits and I would still prefer to see GetMinAndMaxPaintTime use TimeDelta type. https://codereview.chromium.org/11827009/diff/25001/cc/paint_time_counter.cc ...
7 years, 11 months ago (2013-01-16 22:48:03 UTC) #11
nduca
Its okay to leave double for now. We're inconsistent in the codebase. File a bug ...
7 years, 11 months ago (2013-01-16 22:49:24 UTC) #12
reveman
On 2013/01/16 22:49:24, nduca wrote: > Its okay to leave double for now. We're inconsistent ...
7 years, 11 months ago (2013-01-16 22:56:55 UTC) #13
egraether
Resolved the nits and used TimeDelta throughout the API. If I need to change to ...
7 years, 11 months ago (2013-01-16 23:27:26 UTC) #14
reveman
thanks! lgtm
7 years, 11 months ago (2013-01-16 23:30:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/egraether@chromium.org/11827009/30001
7 years, 11 months ago (2013-01-17 00:04:10 UTC) #16
commit-bot: I haz the power
7 years, 11 months ago (2013-01-17 03:33:05 UTC) #17
Message was sent while issue was closed.
Change committed as 177332

Powered by Google App Engine
This is Rietveld 408576698