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

Issue 140583003: Chrome power profiler service (Closed)

Created:
6 years, 11 months ago by Pan
Modified:
6 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

This CL implemented part of chrome power profiler, including the service, data provider and observer base. BUG=337138 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254116

Patch Set 1 #

Total comments: 20

Patch Set 2 : #

Total comments: 20

Patch Set 3 : #

Total comments: 12

Patch Set 4 : remove an invalid comment. #

Patch Set 5 : #

Total comments: 8

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Total comments: 2

Patch Set 9 : #

Total comments: 2

Patch Set 10 : #

Patch Set 11 : #

Total comments: 18

Patch Set 12 : #

Patch Set 13 : Remove devtools_protocol_constants, which was replaced by generators. #

Total comments: 5

Patch Set 14 : #

Total comments: 53

Patch Set 15 : #

Patch Set 16 : Move complex destructor impl to .cc #

Total comments: 36

Patch Set 17 : #

Patch Set 18 : remove timeout from tests, patch for landing #

Total comments: 19

Patch Set 19 : #

Total comments: 1

Patch Set 20 : patch for landing #

Total comments: 11

Patch Set 21 : #

Patch Set 22 : Remove PowerDataProviderFactory #

Total comments: 2

Patch Set 23 : patch for landing #

Patch Set 24 : #

Patch Set 25 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+592 lines, -0 lines) Patch
A content/browser/devtools/devtools_power_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +36 lines, -0 lines 0 comments Download
A content/browser/devtools/devtools_power_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +72 lines, -0 lines 0 comments Download
A content/browser/power_profiler/power_data_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +31 lines, -0 lines 0 comments Download
A content/browser/power_profiler/power_data_provider_dummy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +13 lines, -0 lines 0 comments Download
A content/browser/power_profiler/power_event.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +42 lines, -0 lines 0 comments Download
A content/browser/power_profiler/power_event.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +17 lines, -0 lines 0 comments Download
A content/browser/power_profiler/power_profiler_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +33 lines, -0 lines 0 comments Download
A content/browser/power_profiler/power_profiler_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +76 lines, -0 lines 0 comments Download
A content/browser/power_profiler/power_profiler_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +118 lines, -0 lines 0 comments Download
A content/browser/power_profiler/power_profiler_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +144 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +9 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 83 (0 generated)
Pan
Hi, split the first patch from https://codereview.chromium.org/106223002/, ready to review now. thanks Pan
6 years, 11 months ago (2014-01-23 12:18:20 UTC) #1
qsr
https://codereview.chromium.org/140583003/diff/1/content/browser/power_profiler/power_profiler_service.cc File content/browser/power_profiler/power_profiler_service.cc (right): https://codereview.chromium.org/140583003/diff/1/content/browser/power_profiler/power_profiler_service.cc#newcode41 content/browser/power_profiler/power_profiler_service.cc:41: bool PowerProfilerService::AddObserver(PowerProfilerObserver* obs) { I don't think you need ...
6 years, 11 months ago (2014-01-23 12:50:05 UTC) #2
Pan
https://codereview.chromium.org/140583003/diff/1/content/browser/power_profiler/power_profiler_service.cc File content/browser/power_profiler/power_profiler_service.cc (right): https://codereview.chromium.org/140583003/diff/1/content/browser/power_profiler/power_profiler_service.cc#newcode41 content/browser/power_profiler/power_profiler_service.cc:41: bool PowerProfilerService::AddObserver(PowerProfilerObserver* obs) { On 2014/01/23 12:50:06, qsr wrote: ...
6 years, 11 months ago (2014-01-25 09:35:53 UTC) #3
qsr
https://codereview.chromium.org/140583003/diff/120001/content/browser/power_profiler/power_profiler_service.cc File content/browser/power_profiler/power_profiler_service.cc (right): https://codereview.chromium.org/140583003/diff/120001/content/browser/power_profiler/power_profiler_service.cc#newcode16 content/browser/power_profiler/power_profiler_service.cc:16: , data_provider_(PowerDataProviderFactory::Create()) { comma should be on the previous ...
6 years, 11 months ago (2014-01-27 10:01:47 UTC) #4
Pan
https://codereview.chromium.org/140583003/diff/120001/content/browser/power_profiler/power_profiler_service.cc File content/browser/power_profiler/power_profiler_service.cc (right): https://codereview.chromium.org/140583003/diff/120001/content/browser/power_profiler/power_profiler_service.cc#newcode71 content/browser/power_profiler/power_profiler_service.cc:71: void PowerProfilerService::UpdateResolution() { On 2014/01/27 10:01:47, qsr wrote: > ...
6 years, 10 months ago (2014-01-28 09:58:04 UTC) #5
Pan
https://codereview.chromium.org/140583003/diff/120001/content/browser/power_profiler/power_profiler_service.cc File content/browser/power_profiler/power_profiler_service.cc (right): https://codereview.chromium.org/140583003/diff/120001/content/browser/power_profiler/power_profiler_service.cc#newcode16 content/browser/power_profiler/power_profiler_service.cc:16: , data_provider_(PowerDataProviderFactory::Create()) { On 2014/01/27 10:01:47, qsr wrote: > ...
6 years, 10 months ago (2014-01-28 13:32:58 UTC) #6
qsr
LGTM with nits. You will now need a LGTM from the right owners. https://codereview.chromium.org/140583003/diff/190001/content/browser/power_profiler/power_profiler_service.cc File ...
6 years, 10 months ago (2014-01-28 13:44:15 UTC) #7
Pan
@qsr, thanks for your great help. @darin, @jam, I saw you are the owners of ...
6 years, 10 months ago (2014-01-28 14:22:11 UTC) #8
jam
Please read http://www.chromium.org/developers/content-module to see what goes into content, and http://www.chromium.org/developers/content-module/content-api to see how an ...
6 years, 10 months ago (2014-01-28 15:51:51 UTC) #9
qsr
+playmobil
6 years, 10 months ago (2014-01-28 17:43:34 UTC) #10
jeremy
Would appreciate some context on what data the hardware provides and the planned scope of ...
6 years, 10 months ago (2014-01-28 19:45:42 UTC) #11
Pan
On 2014/01/28 15:51:51, jam wrote: > Please read http://www.chromium.org/developers/content-module to see what goes > into ...
6 years, 10 months ago (2014-01-28 23:52:37 UTC) #12
Pan
https://codereview.chromium.org/140583003/diff/250001/content/public/browser/power_data_provider.h File content/public/browser/power_data_provider.h (right): https://codereview.chromium.org/140583003/diff/250001/content/public/browser/power_data_provider.h#newcode16 content/public/browser/power_data_provider.h:16: struct PowerEvent { On 2014/01/28 19:45:43, jeremy wrote: > ...
6 years, 10 months ago (2014-01-29 00:29:22 UTC) #13
qsr
On 2014/01/29 00:29:22, Pan wrote: > https://codereview.chromium.org/140583003/diff/250001/content/public/browser/power_data_provider.h > File content/public/browser/power_data_provider.h (right): > > https://codereview.chromium.org/140583003/diff/250001/content/public/browser/power_data_provider.h#newcode16 > ...
6 years, 10 months ago (2014-01-29 14:26:46 UTC) #14
qsr
https://chromiumcodereview.appspot.com/140583003/diff/250001/content/public/browser/power_profiler_observer.h File content/public/browser/power_profiler_observer.h (right): https://chromiumcodereview.appspot.com/140583003/diff/250001/content/public/browser/power_profiler_observer.h#newcode20 content/public/browser/power_profiler_observer.h:20: virtual void OnPowerEvent(const PowerEvent&) = 0; You must forward ...
6 years, 10 months ago (2014-01-29 14:26:52 UTC) #15
qsr
On 2014/01/28 19:45:42, jeremy wrote: > Would appreciate some context on what data the hardware ...
6 years, 10 months ago (2014-01-29 14:29:25 UTC) #16
jeremy
I assume that Maverick's powermetrics utility is providing data using the same mechanism you are ...
6 years, 10 months ago (2014-01-29 20:55:22 UTC) #17
Pan
On 2014/01/29 20:55:22, jeremy wrote: > I assume that Maverick's powermetrics utility is providing data ...
6 years, 10 months ago (2014-01-30 01:00:28 UTC) #18
Pan
https://codereview.chromium.org/140583003/diff/250001/content/public/browser/power_profiler_observer.h File content/public/browser/power_profiler_observer.h (right): https://codereview.chromium.org/140583003/diff/250001/content/public/browser/power_profiler_observer.h#newcode20 content/public/browser/power_profiler_observer.h:20: virtual void OnPowerEvent(const PowerEvent&) = 0; On 2014/01/29 14:26:52, ...
6 years, 10 months ago (2014-01-30 01:05:35 UTC) #19
jam
On 2014/01/28 23:52:37, Pan wrote: > On 2014/01/28 15:51:51, jam wrote: > > Please read ...
6 years, 10 months ago (2014-01-31 17:43:36 UTC) #20
qsr
On 2014/01/31 17:43:36, jam wrote: > On 2014/01/28 23:52:37, Pan wrote: > > On 2014/01/28 ...
6 years, 10 months ago (2014-02-03 14:01:22 UTC) #21
pfeldman
> We would like this to be in content, because this is the API on ...
6 years, 10 months ago (2014-02-03 14:50:19 UTC) #22
qsr
On 2014/02/03 14:50:19, pfeldman wrote: > > We would like this to be in content, ...
6 years, 10 months ago (2014-02-03 16:13:56 UTC) #23
pfeldman
> We were hoping to be able to get power usage information for the content ...
6 years, 10 months ago (2014-02-03 16:33:29 UTC) #24
qsr
On 2014/02/03 16:33:29, pfeldman wrote: > > We were hoping to be able to get ...
6 years, 10 months ago (2014-02-03 16:40:20 UTC) #25
pfeldman
> Sorry, I am missing a point there. What do you mean by pluggable power ...
6 years, 10 months ago (2014-02-03 16:51:40 UTC) #26
Pan
On 2014/02/03 16:51:40, pfeldman wrote: > > Sorry, I am missing a point there. What ...
6 years, 10 months ago (2014-02-10 07:48:22 UTC) #27
qsr
https://codereview.chromium.org/140583003/diff/380001/content/browser/power_profiler/power_data_provider.h File content/browser/power_profiler/power_data_provider.h (right): https://codereview.chromium.org/140583003/diff/380001/content/browser/power_profiler/power_data_provider.h#newcode25 content/browser/power_profiler/power_data_provider.h:25: double value; See jeremy@ message, we probably want an ...
6 years, 10 months ago (2014-02-10 14:02:48 UTC) #28
Pan
https://codereview.chromium.org/140583003/diff/380001/content/browser/power_profiler/power_data_provider.h File content/browser/power_profiler/power_data_provider.h (right): https://codereview.chromium.org/140583003/diff/380001/content/browser/power_profiler/power_data_provider.h#newcode25 content/browser/power_profiler/power_data_provider.h:25: double value; On 2014/02/10 14:02:49, qsr wrote: > See ...
6 years, 10 months ago (2014-02-11 02:03:22 UTC) #29
qsr
On 2014/02/11 02:03:22, Pan wrote: > https://codereview.chromium.org/140583003/diff/380001/content/browser/power_profiler/power_data_provider.h > File content/browser/power_profiler/power_data_provider.h (right): > > https://codereview.chromium.org/140583003/diff/380001/content/browser/power_profiler/power_data_provider.h#newcode25 > ...
6 years, 10 months ago (2014-02-11 09:04:21 UTC) #30
Pan
On 2014/02/11 09:04:21, qsr wrote: > On 2014/02/11 02:03:22, Pan wrote: > > > https://codereview.chromium.org/140583003/diff/380001/content/browser/power_profiler/power_data_provider.h ...
6 years, 10 months ago (2014-02-11 09:53:49 UTC) #31
qsr
On 2014/02/11 09:53:49, Pan wrote: > On 2014/02/11 09:04:21, qsr wrote: > > On 2014/02/11 ...
6 years, 10 months ago (2014-02-11 10:20:00 UTC) #32
Pan
On 2014/02/11 10:20:00, qsr wrote: > On 2014/02/11 09:53:49, Pan wrote: > > On 2014/02/11 ...
6 years, 10 months ago (2014-02-11 11:59:05 UTC) #33
Pan
> thanks, I mean provider fills events into array(it should be vector) due to its ...
6 years, 10 months ago (2014-02-11 13:44:06 UTC) #34
qsr
https://codereview.chromium.org/140583003/diff/590001/content/browser/devtools/devtools_power_handler.cc File content/browser/devtools/devtools_power_handler.cc (right): https://codereview.chromium.org/140583003/diff/590001/content/browser/devtools/devtools_power_handler.cc#newcode36 content/browser/devtools/devtools_power_handler.cc:36: if (iter->type != PowerEvent::SOC_PACKAGE) Why only SOC_PACKAGE? Some implementation ...
6 years, 10 months ago (2014-02-11 15:51:12 UTC) #35
Pan
https://codereview.chromium.org/140583003/diff/590001/content/browser/devtools/devtools_power_handler.cc File content/browser/devtools/devtools_power_handler.cc (right): https://codereview.chromium.org/140583003/diff/590001/content/browser/devtools/devtools_power_handler.cc#newcode36 content/browser/devtools/devtools_power_handler.cc:36: if (iter->type != PowerEvent::SOC_PACKAGE) On 2014/02/11 15:51:13, qsr wrote: ...
6 years, 10 months ago (2014-02-12 03:24:03 UTC) #36
pfeldman
devtools part looks reasonable to me. https://codereview.chromium.org/140583003/diff/450001/content/browser/devtools/devtools_protocol_constants.cc File content/browser/devtools/devtools_protocol_constants.cc (right): https://codereview.chromium.org/140583003/diff/450001/content/browser/devtools/devtools_protocol_constants.cc#newcode232 content/browser/devtools/devtools_protocol_constants.cc:232: const char kName[] ...
6 years, 10 months ago (2014-02-12 09:08:51 UTC) #37
Pan
https://codereview.chromium.org/140583003/diff/450001/content/browser/devtools/devtools_protocol_constants.cc File content/browser/devtools/devtools_protocol_constants.cc (right): https://codereview.chromium.org/140583003/diff/450001/content/browser/devtools/devtools_protocol_constants.cc#newcode232 content/browser/devtools/devtools_protocol_constants.cc:232: const char kName[] = "Power.dataReceived"; On 2014/02/12 09:08:51, pfeldman ...
6 years, 10 months ago (2014-02-12 11:52:34 UTC) #38
Pan
Hi @jeremy,@qsr, Any more comments? thanks for your help. Pan
6 years, 10 months ago (2014-02-13 00:41:48 UTC) #39
qsr
LGTM with nits. https://codereview.chromium.org/140583003/diff/760001/content/browser/devtools/devtools_power_handler.cc File content/browser/devtools/devtools_power_handler.cc (right): https://codereview.chromium.org/140583003/diff/760001/content/browser/devtools/devtools_power_handler.cc#newcode41 content/browser/devtools/devtools_power_handler.cc:41: convertMonotonicTimeToWallTime(iter->time).ToDoubleT() * 1000.0); Any reason for ...
6 years, 10 months ago (2014-02-13 16:40:12 UTC) #40
Pan
https://codereview.chromium.org/140583003/diff/760001/content/browser/devtools/devtools_power_handler.cc File content/browser/devtools/devtools_power_handler.cc (right): https://codereview.chromium.org/140583003/diff/760001/content/browser/devtools/devtools_power_handler.cc#newcode41 content/browser/devtools/devtools_power_handler.cc:41: convertMonotonicTimeToWallTime(iter->time).ToDoubleT() * 1000.0); On 2014/02/13 16:40:13, qsr wrote: > ...
6 years, 10 months ago (2014-02-14 07:17:01 UTC) #41
pfeldman
https://codereview.chromium.org/140583003/diff/940001/content/browser/devtools/devtools_power_handler.cc File content/browser/devtools/devtools_power_handler.cc (right): https://codereview.chromium.org/140583003/diff/940001/content/browser/devtools/devtools_power_handler.cc#newcode51 content/browser/devtools/devtools_power_handler.cc:51: params->Set(devtools::Power::dataAvailable::kParamValue, event_list); Never format events manually. https://codereview.chromium.org/140583003/diff/940001/content/browser/devtools/devtools_power_handler.cc#newcode56 content/browser/devtools/devtools_power_handler.cc:56: SendRawMessage(json_string); ...
6 years, 10 months ago (2014-02-14 08:11:08 UTC) #42
Pan
@pfeldman and @jeremy, If no more comments, could you please grant a LGTM? :) thanks ...
6 years, 10 months ago (2014-02-14 09:07:27 UTC) #43
pfeldman
devtools lgtm
6 years, 10 months ago (2014-02-14 17:04:22 UTC) #44
jeremy
Nice! Some remarks, mostly small things around polish. Please make sure that: * Constants are ...
6 years, 10 months ago (2014-02-16 14:09:18 UTC) #45
Pan
thanks @jeremy, your help is very appreciated! :) Pan https://codereview.chromium.org/140583003/diff/1120001/content/browser/devtools/devtools_power_handler.h File content/browser/devtools/devtools_power_handler.h (right): https://codereview.chromium.org/140583003/diff/1120001/content/browser/devtools/devtools_power_handler.h#newcode14 content/browser/devtools/devtools_power_handler.h:14: ...
6 years, 10 months ago (2014-02-17 03:17:14 UTC) #46
jeremy
Much better, just a bit more comment cleanup. The test timeout is the only real ...
6 years, 10 months ago (2014-02-17 06:31:12 UTC) #47
Pan
thanks @jeremy, For the timeout, I see similar usages in other tests, for example: content/browser/renderer_host/render_widget_host_unittest.cc, ...
6 years, 10 months ago (2014-02-17 07:53:36 UTC) #48
jeremy
Can you please explain why quitting the message loop from inside the observer or counting ...
6 years, 10 months ago (2014-02-17 11:12:50 UTC) #49
Pan
On 2014/02/17 11:12:50, jeremy wrote: > Can you please explain why quitting the message loop ...
6 years, 10 months ago (2014-02-18 09:57:34 UTC) #50
qsr
https://codereview.chromium.org/140583003/diff/1610001/content/browser/power_profiler/power_profiler_service_unittest.cc File content/browser/power_profiler/power_profiler_service_unittest.cc (right): https://codereview.chromium.org/140583003/diff/1610001/content/browser/power_profiler/power_profiler_service_unittest.cc#newcode85 content/browser/power_profiler/power_profiler_service_unittest.cc:85: base::TimeDelta::FromMilliseconds(5)); If you do not check anything related to ...
6 years, 10 months ago (2014-02-18 10:01:21 UTC) #51
jeremy
https://codereview.chromium.org/140583003/diff/1610001/content/browser/power_profiler/power_profiler_service_unittest.cc File content/browser/power_profiler/power_profiler_service_unittest.cc (right): https://codereview.chromium.org/140583003/diff/1610001/content/browser/power_profiler/power_profiler_service_unittest.cc#newcode61 content/browser/power_profiler/power_profiler_service_unittest.cc:61: static int all_receive_counter; Much better! The only issue is ...
6 years, 10 months ago (2014-02-18 10:28:56 UTC) #52
jeremy
Some additional comments for things I missed before, sorry about that, hope we can get ...
6 years, 10 months ago (2014-02-18 11:35:32 UTC) #53
qsr
https://codereview.chromium.org/140583003/diff/1610001/content/browser/power_profiler/power_profiler_service.cc File content/browser/power_profiler/power_profiler_service.cc (right): https://codereview.chromium.org/140583003/diff/1610001/content/browser/power_profiler/power_profiler_service.cc#newcode29 content/browser/power_profiler/power_profiler_service.cc:29: if (data_provider_.get()) { On 2014/02/18 11:35:33, jeremy wrote: > ...
6 years, 10 months ago (2014-02-18 11:38:08 UTC) #54
jeremy
Thanks Ben, in that case I'd add a comment (e.g. it wasn't clear to me ...
6 years, 10 months ago (2014-02-18 11:59:16 UTC) #55
Pan
https://codereview.chromium.org/140583003/diff/1610001/content/browser/power_profiler/power_data_provider.h File content/browser/power_profiler/power_data_provider.h (right): https://codereview.chromium.org/140583003/diff/1610001/content/browser/power_profiler/power_data_provider.h#newcode30 content/browser/power_profiler/power_data_provider.h:30: base::TimeTicks time; // Time that power data was read. ...
6 years, 10 months ago (2014-02-18 12:58:38 UTC) #56
jeremy
LGTM One additional nit, no need for another review round from me. https://codereview.chromium.org/140583003/diff/1780001/content/browser/power_profiler/power_profiler_service.cc File content/browser/power_profiler/power_profiler_service.cc ...
6 years, 10 months ago (2014-02-18 13:13:39 UTC) #57
Pan
The CQ bit was checked by pan.deng@intel.com
6 years, 10 months ago (2014-02-18 13:28:20 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pan.deng@intel.com/140583003/1880001
6 years, 10 months ago (2014-02-18 13:28:29 UTC) #59
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-18 13:33:09 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 10 months ago (2014-02-18 13:33:10 UTC) #61
Pan
Hi @jam, This CL has been updated with the help from qsr, pfeldman and jeremy. ...
6 years, 10 months ago (2014-02-19 00:57:33 UTC) #62
jam
since there are > 60 comments on this and I won't be able to read ...
6 years, 10 months ago (2014-02-24 21:53:44 UTC) #63
Pan
On 2014/02/24 21:53:44, jam wrote: > since there are > 60 comments on this and ...
6 years, 10 months ago (2014-02-25 01:20:38 UTC) #64
jam
https://codereview.chromium.org/140583003/diff/1880001/content/browser/power_profiler/power_data_provider_factory.h File content/browser/power_profiler/power_data_provider_factory.h (right): https://codereview.chromium.org/140583003/diff/1880001/content/browser/power_profiler/power_data_provider_factory.h#newcode13 content/browser/power_profiler/power_data_provider_factory.h:13: class PowerDataProviderFactory { On 2014/02/25 01:20:39, Pan wrote: > ...
6 years, 10 months ago (2014-02-25 19:27:24 UTC) #65
Pan
https://codereview.chromium.org/140583003/diff/1880001/content/browser/power_profiler/power_data_provider_factory.h File content/browser/power_profiler/power_data_provider_factory.h (right): https://codereview.chromium.org/140583003/diff/1880001/content/browser/power_profiler/power_data_provider_factory.h#newcode13 content/browser/power_profiler/power_data_provider_factory.h:13: class PowerDataProviderFactory { > you don't need a separate ...
6 years, 10 months ago (2014-02-26 00:17:03 UTC) #66
jam
https://codereview.chromium.org/140583003/diff/1880001/content/browser/power_profiler/power_data_provider_factory.h File content/browser/power_profiler/power_data_provider_factory.h (right): https://codereview.chromium.org/140583003/diff/1880001/content/browser/power_profiler/power_data_provider_factory.h#newcode13 content/browser/power_profiler/power_data_provider_factory.h:13: class PowerDataProviderFactory { On 2014/02/26 00:17:05, Pan wrote: > ...
6 years, 10 months ago (2014-02-26 17:40:40 UTC) #67
Pan
> I still don't understand why this makes things clear? you already need gyp rules ...
6 years, 10 months ago (2014-02-26 22:14:19 UTC) #68
Pan
Hi @jam, I finally understand your suggestion, impl static PowerDataProvider::Create() together with sub class's impl ...
6 years, 10 months ago (2014-02-27 00:12:30 UTC) #69
jam
lgtm https://codereview.chromium.org/140583003/diff/2360001/content/browser/power_profiler/power_data_provider.h File content/browser/power_profiler/power_data_provider.h (right): https://codereview.chromium.org/140583003/diff/2360001/content/browser/power_profiler/power_data_provider.h#newcode27 content/browser/power_profiler/power_data_provider.h:27: DISALLOW_COPY_AND_ASSIGN(PowerDataProvider); nit: this isn't needed because an abstract ...
6 years, 9 months ago (2014-02-27 21:55:03 UTC) #70
Pan
https://codereview.chromium.org/140583003/diff/2360001/content/browser/power_profiler/power_data_provider.h File content/browser/power_profiler/power_data_provider.h (right): https://codereview.chromium.org/140583003/diff/2360001/content/browser/power_profiler/power_data_provider.h#newcode27 content/browser/power_profiler/power_data_provider.h:27: DISALLOW_COPY_AND_ASSIGN(PowerDataProvider); On 2014/02/27 21:55:04, jam wrote: > nit: this ...
6 years, 9 months ago (2014-02-27 22:21:09 UTC) #71
Pan
The CQ bit was checked by pan.deng@intel.com
6 years, 9 months ago (2014-02-27 22:21:36 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pan.deng@intel.com/140583003/2380001
6 years, 9 months ago (2014-02-27 22:21:52 UTC) #73
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-27 22:46:19 UTC) #74
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-02-27 22:46:20 UTC) #75
Pan
The CQ bit was checked by pan.deng@intel.com
6 years, 9 months ago (2014-02-28 05:28:17 UTC) #76
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pan.deng@intel.com/140583003/2400001
6 years, 9 months ago (2014-02-28 05:28:25 UTC) #77
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-28 05:57:05 UTC) #78
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-02-28 05:57:07 UTC) #79
Pan
The CQ bit was checked by pan.deng@intel.com
6 years, 9 months ago (2014-02-28 07:25:51 UTC) #80
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pan.deng@intel.com/140583003/2420001
6 years, 9 months ago (2014-02-28 07:26:21 UTC) #81
commit-bot: I haz the power
Change committed as 254116
6 years, 9 months ago (2014-02-28 15:09:08 UTC) #82
erikwright (departed)
6 years, 9 months ago (2014-02-28 16:21:50 UTC) #83
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/184583004/ by erikwright@chromium.org.

The reason for reverting is: Appears to have caused a memory leak.

http://build.chromium.org/p/chromium.memory/builders/Linux%20ASAN%20Tests%20%...

Indirect leak of 176 byte(s) in 1 object(s) allocated from:
    #0 0x49c001 in operator new(unsigned long)
/usr/local/google/work/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:54
    #1 0xf42228 in content::PowerProfilerServiceTest::ServiceStartTest()
content/browser/power_profiler/power_profiler_service_unittest.cc:85
    #2 0xf4212d in
content::PowerProfilerServiceTest_AvailableService_Test::TestBody()
content/browser/power_profiler/power_profiler_service_unittest.cc:138
    #3 0x2d3587a in HandleExceptionsInMethodIfSupported\u003Ctesting::Test,
void> testing/gtest/src/gtest.cc:2045
    #4 0x2d3587a in testing::Test::Run() testing/gtest/src/gtest.cc:2061
    #5 0x2d379ca in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2237
    #6 0x2d38793 in testing::TestCase::Run() testing/gtest/src/gtest.cc:2344
    #7 0x2d4984a in testing::internal::UnitTestImpl::RunAllTests()
testing/gtest/src/gtest.cc:4065
    #8 0x2d48e30 in
HandleExceptionsInMethodIfSupported\u003Ctesting::internal::UnitTestImpl, bool>
testing/gtest/src/gtest.cc:2045
    #9 0x2d48e30 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:3697
    #10 0x2cc09cc in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2231
    #11 0x2cc09cc in base::TestSuite::Run() base/test/test_suite.cc:213
    #12 0x2cb4041 in Run base/callback.h:401
    #13 0x2cb4041 in base::(anonymous namespace)::LaunchUnitTestsInternal(int,
char**, base::Callback\u003Cint ()> const&, int)
base/test/launcher/unit_test_launcher.cc:494
    #14 0x195d8ce in main content/test/run_all_unittests.cc:14
    #15 0x7f515353d76c in __libc_start_main
/build/buildd/eglibc-2.15/csu/libc-start.c:226
.

Powered by Google App Engine
This is Rietveld 408576698