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

Issue 2942403002: [GRC] Coordination Unit Graph Observer (Closed)

Created:
3 years, 6 months ago by matthalp
Modified:
3 years, 6 months ago
CC:
chromium-reviews, ducbui, fmeawad, nduca, shaseley
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[GRC] Coordination Unit Graph Observer The CoordinationUnitGraphObserver framework provides an API to observe and respond to to interesting events that occur throughout coordination unit lifetimes’ within the resource_coordinator service. R=*lpy@chromium.org,*oysteine@chromium.org,zhenw@chromium.org BUG=724306 Review-Url: https://codereview.chromium.org/2942403002 Cr-Commit-Position: refs/heads/master@{#481076} Committed: https://chromium.googlesource.com/chromium/src/+/a2c1ff6a5f04699131e02568187ad9e68b7738f0

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Change API names #

Patch Set 4 : Rename API function calls #

Total comments: 74

Patch Set 5 : Address reviewer feedback #

Total comments: 1

Patch Set 6 : Fix unittest and OnCoordinationUnitWillBeDestroyed #

Total comments: 1

Patch Set 7 : Rebase #

Patch Set 8 : Rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+428 lines, -16 lines) Patch
M services/resource_coordinator/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
A services/resource_coordinator/coordination_unit/coordination_unit_graph_observer.h View 1 2 3 4 5 6 1 chunk +85 lines, -0 lines 0 comments Download
A services/resource_coordinator/coordination_unit/coordination_unit_graph_observer.cc View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
A services/resource_coordinator/coordination_unit/coordination_unit_graph_observer_unittest.cc View 1 2 3 4 5 6 1 chunk +179 lines, -0 lines 1 comment Download
M services/resource_coordinator/coordination_unit/coordination_unit_impl.h View 1 2 3 4 5 6 3 chunks +14 lines, -1 line 0 comments Download
M services/resource_coordinator/coordination_unit/coordination_unit_impl.cc View 1 2 3 4 5 6 6 chunks +52 lines, -3 lines 0 comments Download
M services/resource_coordinator/coordination_unit/coordination_unit_impl_unittest_util.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M services/resource_coordinator/coordination_unit/coordination_unit_impl_unittest_util.cc View 1 5 6 1 chunk +1 line, -1 line 0 comments Download
M services/resource_coordinator/coordination_unit/coordination_unit_manager.h View 1 2 3 4 5 6 7 3 chunks +19 lines, -1 line 0 comments Download
M services/resource_coordinator/coordination_unit/coordination_unit_manager.cc View 1 2 3 4 5 6 7 2 chunks +29 lines, -3 lines 0 comments Download
M services/resource_coordinator/coordination_unit/coordination_unit_provider_impl.h View 1 5 6 3 chunks +6 lines, -1 line 0 comments Download
M services/resource_coordinator/coordination_unit/coordination_unit_provider_impl.cc View 1 2 3 4 5 6 2 chunks +20 lines, -6 lines 0 comments Download

Messages

Total messages: 56 (39 generated)
matthalp
3 years, 6 months ago (2017-06-19 02:57:59 UTC) #14
matthalp
zhenw@ PTAL
3 years, 6 months ago (2017-06-19 19:22:17 UTC) #16
Zhen Wang
Thanks for putting up this CL so quickly! Overall looks good. I left some comments ...
3 years, 6 months ago (2017-06-19 22:54:30 UTC) #17
lpy
https://codereview.chromium.org/2942403002/diff/60001/services/resource_coordinator/coordination_unit/coordination_unit_graph_observer.h File services/resource_coordinator/coordination_unit/coordination_unit_graph_observer.h (right): https://codereview.chromium.org/2942403002/diff/60001/services/resource_coordinator/coordination_unit/coordination_unit_graph_observer.h#newcode45 services/resource_coordinator/coordination_unit/coordination_unit_graph_observer.h:45: bool ShouldObserve(CoordinationUnitImpl* coordination_unit); defer the functionality to CUGraphObserver itself ...
3 years, 6 months ago (2017-06-19 23:21:39 UTC) #19
nduca
Note zhenw is ooo this week, so let us incoporate zhen's feedback but then wait ...
3 years, 6 months ago (2017-06-20 17:20:29 UTC) #21
Zhen Wang
On 2017/06/20 17:20:29, nduca wrote: > Note zhenw is ooo this week, so let us ...
3 years, 6 months ago (2017-06-20 18:03:04 UTC) #22
oystein (OOO til 10th of July)
https://codereview.chromium.org/2942403002/diff/60001/services/resource_coordinator/coordination_unit/coordination_unit_graph_observer.h File services/resource_coordinator/coordination_unit/coordination_unit_graph_observer.h (right): https://codereview.chromium.org/2942403002/diff/60001/services/resource_coordinator/coordination_unit/coordination_unit_graph_observer.h#newcode21 services/resource_coordinator/coordination_unit/coordination_unit_graph_observer.h:21: // Observers are instantiated when the resource_coordinator serivce nit: ...
3 years, 6 months ago (2017-06-20 18:39:24 UTC) #23
matthalp
Reviewer feedback from lpy, oysteine, and zhenw have all been addressed. However, the changes were ...
3 years, 6 months ago (2017-06-20 19:02:53 UTC) #24
matthalp
https://codereview.chromium.org/2942403002/diff/80001/services/resource_coordinator/coordination_unit/coordination_unit_manager.cc File services/resource_coordinator/coordination_unit/coordination_unit_manager.cc (right): https://codereview.chromium.org/2942403002/diff/80001/services/resource_coordinator/coordination_unit/coordination_unit_manager.cc#newcode52 services/resource_coordinator/coordination_unit/coordination_unit_manager.cc:52: observer->OnCoordinationUnitWillBeDestroyed(coordination_unit); I advocate moving the OnCoordinationUnitWillBeDestroyed logic back into ...
3 years, 6 months ago (2017-06-20 21:02:10 UTC) #25
matthalp
On 2017/06/20 at 21:02:10, matthalp wrote: > https://codereview.chromium.org/2942403002/diff/80001/services/resource_coordinator/coordination_unit/coordination_unit_manager.cc > File services/resource_coordinator/coordination_unit/coordination_unit_manager.cc (right): > > https://codereview.chromium.org/2942403002/diff/80001/services/resource_coordinator/coordination_unit/coordination_unit_manager.cc#newcode52 ...
3 years, 6 months ago (2017-06-20 21:10:53 UTC) #26
lpy
This loos great, lgtm from my side. Thanks for doing this and sorry for the ...
3 years, 6 months ago (2017-06-20 21:29:17 UTC) #27
oystein (OOO til 10th of July)
Great, thanks! :) lgtm with a nit. https://codereview.chromium.org/2942403002/diff/100001/services/resource_coordinator/coordination_unit/coordination_unit_manager.h File services/resource_coordinator/coordination_unit/coordination_unit_manager.h (right): https://codereview.chromium.org/2942403002/diff/100001/services/resource_coordinator/coordination_unit/coordination_unit_manager.h#newcode40 services/resource_coordinator/coordination_unit/coordination_unit_manager.h:40: std::vector<std::unique_ptr<CoordinationUnitGraphObserver>>& observers() ...
3 years, 6 months ago (2017-06-20 21:39:33 UTC) #28
nduca
Awesome work Matt!
3 years, 6 months ago (2017-06-20 22:52:04 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2942403002/140001
3 years, 6 months ago (2017-06-21 01:34:04 UTC) #51
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/a2c1ff6a5f04699131e02568187ad9e68b7738f0
3 years, 6 months ago (2017-06-21 01:46:03 UTC) #54
Zhen Wang
Thanks for the hard work! Late LGTM with one nit, which can be cleaned up ...
3 years, 6 months ago (2017-06-21 03:48:36 UTC) #55
matthalp
3 years, 6 months ago (2017-06-21 14:09:23 UTC) #56
Message was sent while issue was closed.
On 2017/06/21 at 03:48:36, zhenw wrote:
> Thanks for the hard work! Late LGTM with one nit, which can be cleaned up in a
follow-up CL.
> 
>
https://codereview.chromium.org/2942403002/diff/140001/services/resource_coor...
> File
services/resource_coordinator/coordination_unit/coordination_unit_graph_observer_unittest.cc
(right):
> 
>
https://codereview.chromium.org/2942403002/diff/140001/services/resource_coor...
>
services/resource_coordinator/coordination_unit/coordination_unit_graph_observer_unittest.cc:100:
TEST_F(CoordinationUnitGraphObserverTest, CallbacksInvokedNoFilters) {
> nit: CallbacksInvokedNoFilters/CallbacksInvoked
> 
> There is no concept of "filter" any more.

Thank you for catching that. I will fix it in my TabCPUUsage CL.

Powered by Google App Engine
This is Rietveld 408576698