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

Issue 13874002: Switch LatencyInfo struct to use a map. (Closed)

Created:
7 years, 8 months ago by jbauman
Modified:
7 years, 8 months ago
Reviewers:
danakj, nduca, Chris Evans
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam
Visibility:
Public.

Description

Switch LatencyInfo struct to use a map. This allows us to have multiple instances of a specific component, for example each renderer will have a separate main thread and compositor. BUG=155367 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194687

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Patch Set 5 : Add another timestamp #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : change variable names #

Total comments: 2

Patch Set 8 : prevent division by zero #

Total comments: 1

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -14 lines) Patch
M cc/cc.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/debug/latency_info.h View 1 2 3 4 5 6 7 8 9 1 chunk +46 lines, -10 lines 0 comments Download
A cc/debug/latency_info.cc View 1 2 3 4 5 6 7 8 9 1 chunk +61 lines, -0 lines 0 comments Download
M content/common/cc_messages.h View 1 2 3 4 5 6 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
jbauman
7 years, 8 months ago (2013-04-09 02:31:58 UTC) #1
nduca
https://codereview.chromium.org/13874002/diff/8001/cc/debug/latency_info.cc File cc/debug/latency_info.cc (right): https://codereview.chromium.org/13874002/diff/8001/cc/debug/latency_info.cc#newcode19 cc/debug/latency_info.cc:19: int64 id, int64 number) { lgtm numer-> component_sequence_number? lets ...
7 years, 8 months ago (2013-04-09 23:15:08 UTC) #2
jbauman
cevans@, could you do an OWNERS review for the (hopefully trivial) IPC change?
7 years, 8 months ago (2013-04-09 23:55:35 UTC) #3
jbauman
Actually, I decided to modify this to add a timestamp that a consumer of this ...
7 years, 8 months ago (2013-04-15 16:41:52 UTC) #4
nduca
Yeah that makes sense. Some nits. https://codereview.chromium.org/13874002/diff/20001/cc/debug/latency_info.h File cc/debug/latency_info.h (right): https://codereview.chromium.org/13874002/diff/20001/cc/debug/latency_info.h#newcode25 cc/debug/latency_info.h:25: struct ComponentInfo { ...
7 years, 8 months ago (2013-04-15 16:49:23 UTC) #5
jbauman
Ok, changed the names. On 2013/04/15 16:49:23, nduca wrote: > Yeah that makes sense. Some ...
7 years, 8 months ago (2013-04-15 16:58:19 UTC) #6
nduca
old lgtm from #2 still holds, needless to say. This is good stuff.
7 years, 8 months ago (2013-04-15 17:03:28 UTC) #7
jbauman
cevans@, would you mind reviewing the IPC change to see if it's safe? Hopefully should ...
7 years, 8 months ago (2013-04-15 17:06:43 UTC) #8
Chris Evans
On 2013/04/15 17:06:43, jbauman wrote: > cevans@, would you mind reviewing the IPC change to ...
7 years, 8 months ago (2013-04-15 19:33:35 UTC) #9
jbauman
On 2013/04/15 19:33:35, Chris Evans wrote: > On 2013/04/15 17:06:43, jbauman wrote: > > cevans@, ...
7 years, 8 months ago (2013-04-15 19:39:33 UTC) #10
Chris Evans
https://codereview.chromium.org/13874002/diff/23002/cc/debug/latency_info.cc File cc/debug/latency_info.cc (right): https://codereview.chromium.org/13874002/diff/23002/cc/debug/latency_info.cc#newcode43 cc/debug/latency_info.cc:43: (event_count + f->second.event_count); Seems like there's opportunity to be ...
7 years, 8 months ago (2013-04-15 21:06:25 UTC) #11
jbauman
Good idea; I switched it to uint32_t and added a check (to protect against overflow). ...
7 years, 8 months ago (2013-04-16 17:49:50 UTC) #12
danakj
On Tue, Apr 16, 2013 at 1:49 PM, <jbauman@chromium.org> wrote: > Good idea; I switched ...
7 years, 8 months ago (2013-04-16 18:41:44 UTC) #13
Chris Evans
LGTM with nit https://codereview.chromium.org/13874002/diff/30001/cc/debug/latency_info.cc File cc/debug/latency_info.cc (right): https://codereview.chromium.org/13874002/diff/30001/cc/debug/latency_info.cc#newcode37 cc/debug/latency_info.cc:37: f->second.sequence_number); Nit: can avoid some minor ...
7 years, 8 months ago (2013-04-17 00:54:59 UTC) #14
jbauman
7 years, 8 months ago (2013-04-17 21:39:06 UTC) #15
Message was sent while issue was closed.
Committed patchset #10 manually as r194687 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698