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

Issue 146683002: InspectorController should lazily initialize InspectorAgents which begin instrumenting at later sta… (Closed)

Created:
6 years, 11 months ago by vivekg_samsung
Modified:
6 years, 11 months ago
Reviewers:
vivekg, apavlov, pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

InspectorController should lazily initialize InspectorAgents which begin instrumenting at later stage. Presently InspectorController creates and initializes all the InspectorAgents in the InspectorController. InspectorController is installed during the Page construction i.e. from the Page() constructor. Most of these agents are required to instrument at the later stage and hence need not be created/initialized during the Page construction. This saves about ~2.5KB of memory allocation during the startup of the page. BUG=337789 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165814

Patch Set 1 #

Patch Set 2 : Patch after rebase! #

Total comments: 1

Patch Set 3 : Patch for landing! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -45 lines) Patch
M Source/core/inspector/InspectorController.h View 1 2 4 chunks +7 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorController.cpp View 1 2 3 chunks +58 lines, -43 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
vivekg
PTAL, thank you!
6 years, 11 months ago (2014-01-24 11:01:02 UTC) #1
pfeldman
Oops. I was modularizing agents for geolocation and needed to refactor agents constructor signatures. This ...
6 years, 11 months ago (2014-01-24 15:54:22 UTC) #2
vivekg
On 2014/01/24 15:54:22, pfeldman wrote: > Oops. I was modularizing agents for geolocation and needed ...
6 years, 11 months ago (2014-01-24 16:11:16 UTC) #3
vivekg
Rebased the patch after merging with the latest patch of yours. PTAL, thanks!
6 years, 11 months ago (2014-01-25 09:59:36 UTC) #4
pfeldman
lgtm. Awesome, thanks, this is nearly identical to the one I was preparing. https://codereview.chromium.org/146683002/diff/100001/Source/core/inspector/InspectorController.cpp File ...
6 years, 11 months ago (2014-01-25 10:39:06 UTC) #5
vivekg
On 2014/01/25 10:39:06, pfeldman wrote: > lgtm. Awesome, thanks, this is nearly identical to the ...
6 years, 11 months ago (2014-01-25 11:15:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vivek.vg@samsung.com/146683002/170001
6 years, 11 months ago (2014-01-25 12:53:45 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=19077
6 years, 11 months ago (2014-01-25 14:32:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vivek.vg@samsung.com/146683002/170001
6 years, 11 months ago (2014-01-25 15:45:53 UTC) #9
commit-bot: I haz the power
6 years, 11 months ago (2014-01-25 17:11:10 UTC) #10
Message was sent while issue was closed.
Change committed as 165814

Powered by Google App Engine
This is Rietveld 408576698