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

Issue 104523002: [DevTools] Add power profiler and power overview in timeline panel. (Closed)

Created:
7 years ago by Pan
Modified:
6 years, 9 months ago
Reviewers:
alph, pfeldman, qsr
CC:
blink-reviews, jamesr, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, abarth-chromium, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, Inactive, devtools-reviews_chromium.org, arv+blink, aandrey+blink_chromium.org, watchdog-blink-watchlist_google.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

This CL add power profiler in DevTools frontend, and draw power data in PowerOverview of Timeline panel. BUG=337138 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169951

Patch Set 1 #

Total comments: 20

Patch Set 2 : #

Patch Set 3 : rebase #

Total comments: 12

Patch Set 4 : #

Total comments: 25

Patch Set 5 : #

Total comments: 6

Patch Set 6 : #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -4 lines) Patch
M Source/devtools/devtools.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
A Source/devtools/front_end/PowerProfiler.js View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
M Source/devtools/front_end/Settings.js View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M Source/devtools/front_end/Target.js View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M Source/devtools/front_end/TimelineOverviewPane.js View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M Source/devtools/front_end/TimelinePanel.js View 1 2 3 4 5 6 chunks +14 lines, -2 lines 0 comments Download
A Source/devtools/front_end/TimelinePowerOverview.js View 1 2 3 4 1 chunk +154 lines, -0 lines 0 comments Download
M Source/devtools/front_end/inspector.html View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/devtools/front_end/timelinePanel.css View 1 2 3 4 3 chunks +8 lines, -2 lines 0 comments Download
M Source/devtools/scripts/frontend_modules.json View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
pfeldman
https://codereview.chromium.org/104523002/diff/1/Source/core/inspector/InspectorFrontendHost.idl File Source/core/inspector/InspectorFrontendHost.idl (right): https://codereview.chromium.org/104523002/diff/1/Source/core/inspector/InspectorFrontendHost.idl#newcode61 Source/core/inspector/InspectorFrontendHost.idl:61: void checkPowerProfileSupportedStatus(); These should not be defined in the ...
6 years, 11 months ago (2014-01-09 11:38:51 UTC) #1
qsr
Pan: What is the status of those CLs? Are they actively worked on?
6 years, 11 months ago (2014-01-16 17:16:31 UTC) #2
pan deng
On 2014/01/16 17:16:31, qsr wrote: > Pan: What is the status of those CLs? Are ...
6 years, 11 months ago (2014-01-17 01:33:39 UTC) #3
Pan
https://codereview.chromium.org/104523002/diff/1/Source/devtools/front_end/TimelineModel.js File Source/devtools/front_end/TimelineModel.js (right): https://codereview.chromium.org/104523002/diff/1/Source/devtools/front_end/TimelineModel.js#newcode45 Source/devtools/front_end/TimelineModel.js:45: WebInspector.powerProfiler.addEventListener(WebInspector.PowerProfiler.EventTypes.PowerEventRecorded, this._onPowerEventAdded, this); On 2014/01/09 11:38:52, pfeldman wrote: > ...
6 years, 10 months ago (2014-02-13 06:01:40 UTC) #4
alph
What's up with Source/web/InspectorClientImpl.cpp file? https://codereview.chromium.org/104523002/diff/1/Source/devtools/front_end/PowerProfiler.js File Source/devtools/front_end/PowerProfiler.js (right): https://codereview.chromium.org/104523002/diff/1/Source/devtools/front_end/PowerProfiler.js#newcode2 Source/devtools/front_end/PowerProfiler.js:2: * Copyright (C) 2013 ...
6 years, 10 months ago (2014-02-13 11:59:47 UTC) #5
Pan
Hi @pfeldman, @alph, The code has been rebased, please review thanks for your help! Pan ...
6 years, 10 months ago (2014-02-24 09:49:46 UTC) #6
Pan
Hi @pfeldman, @alph This cl is rebased, could you please review it :) The svg ...
6 years, 9 months ago (2014-03-11 10:05:29 UTC) #7
pfeldman
https://codereview.chromium.org/104523002/diff/260001/Source/devtools/front_end/PowerProfiler.js File Source/devtools/front_end/PowerProfiler.js (right): https://codereview.chromium.org/104523002/diff/260001/Source/devtools/front_end/PowerProfiler.js#newcode50 Source/devtools/front_end/PowerProfiler.js:50: this._profiler.dispatchEventToListeners(WebInspector.PowerProfiler.EventTypes.PowerEventRecorded, events[i]); It is better to repack data here ...
6 years, 9 months ago (2014-03-11 12:24:02 UTC) #8
Pan
https://codereview.chromium.org/104523002/diff/260001/Source/devtools/front_end/TimelinePowerOverview.js File Source/devtools/front_end/TimelinePowerOverview.js (right): https://codereview.chromium.org/104523002/diff/260001/Source/devtools/front_end/TimelinePowerOverview.js#newcode34 Source/devtools/front_end/TimelinePowerOverview.js:34: this._restorePowerMarker(); On 2014/03/11 12:24:02, pfeldman wrote: > Lets think ...
6 years, 9 months ago (2014-03-12 13:11:20 UTC) #9
pfeldman
On 2014/03/12 13:11:20, Pan wrote: > https://codereview.chromium.org/104523002/diff/260001/Source/devtools/front_end/TimelinePowerOverview.js > File Source/devtools/front_end/TimelinePowerOverview.js (right): > > https://codereview.chromium.org/104523002/diff/260001/Source/devtools/front_end/TimelinePowerOverview.js#newcode34 > ...
6 years, 9 months ago (2014-03-13 05:49:07 UTC) #10
Pan
On 2014/03/13 05:49:07, pfeldman wrote: > On 2014/03/12 13:11:20, Pan wrote: > > > https://codereview.chromium.org/104523002/diff/260001/Source/devtools/front_end/TimelinePowerOverview.js ...
6 years, 9 months ago (2014-03-13 07:49:01 UTC) #11
pfeldman
Reusing memory graph would give you the moving dot, could you try that? We will ...
6 years, 9 months ago (2014-03-13 09:32:55 UTC) #12
Pan
Hi @pfeldman, Thanks for your help, I abstracted Counter and CounterUIBase in https://codereview.chromium.org/196523006/. Now this ...
6 years, 9 months ago (2014-03-18 10:16:48 UTC) #13
pfeldman
https://codereview.chromium.org/104523002/diff/280001/Source/devtools/front_end/Target.js File Source/devtools/front_end/Target.js (right): https://codereview.chromium.org/104523002/diff/280001/Source/devtools/front_end/Target.js#newcode20 Source/devtools/front_end/Target.js:20: this.powerAgent().canProfilePower(this._initializeCapability.bind(this, "canProfilePower", null)); This should be queried behind the ...
6 years, 9 months ago (2014-03-24 13:41:25 UTC) #14
Pan
https://codereview.chromium.org/104523002/diff/280001/Source/devtools/front_end/TimelineOverviewPane.js File Source/devtools/front_end/TimelineOverviewPane.js (right): https://codereview.chromium.org/104523002/diff/280001/Source/devtools/front_end/TimelineOverviewPane.js#newcode326 Source/devtools/front_end/TimelineOverviewPane.js:326: windowChanged: function(timeLeft, timeRight) { }, On 2014/03/24 13:41:25, pfeldman ...
6 years, 9 months ago (2014-03-25 06:12:30 UTC) #15
pfeldman
Exactly. That way we are most consistent with memory and can aim for the most ...
6 years, 9 months ago (2014-03-25 06:50:06 UTC) #16
Pan
On 2014/03/25 06:50:06, pfeldman wrote: > Exactly. That way we are most consistent with memory ...
6 years, 9 months ago (2014-03-25 07:21:14 UTC) #17
Pan
Hi @pfeldman, Now,TimelinePowerOverview is just a clone from TimelineMemoryOverview, differences are: 1) memory data from ...
6 years, 9 months ago (2014-03-25 12:30:19 UTC) #18
pfeldman
lgtm with nits https://codereview.chromium.org/104523002/diff/300001/Source/devtools/front_end/TimelinePanel.js File Source/devtools/front_end/TimelinePanel.js (right): https://codereview.chromium.org/104523002/diff/300001/Source/devtools/front_end/TimelinePanel.js#newcode271 Source/devtools/front_end/TimelinePanel.js:271: views.mainViews = [this._timelineView()]; and you will ...
6 years, 9 months ago (2014-03-25 13:00:50 UTC) #19
Pan
https://codereview.chromium.org/104523002/diff/300001/Source/devtools/front_end/TimelinePanel.js File Source/devtools/front_end/TimelinePanel.js (right): https://codereview.chromium.org/104523002/diff/300001/Source/devtools/front_end/TimelinePanel.js#newcode271 Source/devtools/front_end/TimelinePanel.js:271: views.mainViews = [this._timelineView()]; On 2014/03/25 13:00:51, pfeldman wrote: > ...
6 years, 9 months ago (2014-03-25 14:08:14 UTC) #20
Pan
The CQ bit was checked by pan.deng@intel.com
6 years, 9 months ago (2014-03-25 14:08:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pan.deng@intel.com/104523002/320001
6 years, 9 months ago (2014-03-25 14:08:36 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-25 14:08:44 UTC) #23
commit-bot: I haz the power
Failed to apply patch for Source/devtools/front_end/Settings.js: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-25 14:08:45 UTC) #24
Pan
The CQ bit was checked by pan.deng@intel.com
6 years, 9 months ago (2014-03-25 14:33:26 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pan.deng@intel.com/104523002/390001
6 years, 9 months ago (2014-03-25 14:33:29 UTC) #26
commit-bot: I haz the power
6 years, 9 months ago (2014-03-25 15:39:45 UTC) #27
Message was sent while issue was closed.
Change committed as 169951

Powered by Google App Engine
This is Rietveld 408576698