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

Issue 2600253002: Aggregate DocumentSubresourceFilter counters on page level. (Closed)

Created:
3 years, 11 months ago by pkalinnikov
Modified:
3 years, 11 months ago
Reviewers:
palmer, engedy, Ilya Sherman
CC:
asvitkine+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Aggregate DocumentSubresourceFilter counters on page level. Factor out statistics about the DocumentSubresourceFilter's work into a DocumentLoadStatistics structure. Send it to the browser in a SubresourceFilterHostMsg_DocumentLoadStatistics message, and aggregate the counters and time measurements for each page that a ContentSubresourceFilterDriverFactory represents. Report the aggregated counters and time measurements via newly introduced histograms. BUG=609747 Review-Url: https://codereview.chromium.org/2600253002 Cr-Commit-Position: refs/heads/master@{#443731} Committed: https://chromium.googlesource.com/chromium/src/+/828b1fae0b84215fdc1793a1a25ea3dd09d7bd2d

Patch Set 1 #

Total comments: 10

Patch Set 2 : Rebase, address nits, add forgotten file. #

Total comments: 4

Patch Set 3 : Verify that new histograms are recorded in browsertests. #

Patch Set 4 : Address minor nits. #

Total comments: 2

Patch Set 5 : Rebase, add note. #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -73 lines) Patch
M chrome/browser/subresource_filter/subresource_filter_browsertest.cc View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h View 1 3 chunks +5 lines, -7 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc View 1 2 3 4 4 chunks +40 lines, -13 lines 0 comments Download
M components/subresource_filter/content/common/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A components/subresource_filter/content/common/document_load_statistics.h View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
M components/subresource_filter/content/common/subresource_filter_messages.h View 1 3 chunks +18 lines, -6 lines 0 comments Download
M components/subresource_filter/content/renderer/document_subresource_filter.h View 4 chunks +3 lines, -18 lines 0 comments Download
M components/subresource_filter/content/renderer/document_subresource_filter.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/subresource_filter/content/renderer/document_subresource_filter_unittest.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M components/subresource_filter/content/renderer/subresource_filter_agent.h View 1 2 chunks +3 lines, -4 lines 0 comments Download
M components/subresource_filter/content/renderer/subresource_filter_agent.cc View 1 2 chunks +7 lines, -8 lines 0 comments Download
M components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc View 1 11 chunks +14 lines, -8 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (21 generated)
pkalinnikov
Balazs, please take an initial look. I will add the new histograms to the browsertest ...
3 years, 11 months ago (2016-12-27 20:05:44 UTC) #2
engedy
LGTM % nits, and missing `document_load_statistics.h`. Agreed that unit testing coverage is already as much ...
3 years, 11 months ago (2016-12-28 09:36:02 UTC) #3
pkalinnikov
Addressed all nits, thanks. While I am editing browsertests, you can review the forgotten "document_load_statistics.h" ...
3 years, 11 months ago (2016-12-28 13:43:23 UTC) #4
engedy
Still LGTM % 2 nits in document_load_statistics.h. Thanks! https://codereview.chromium.org/2600253002/diff/20001/components/subresource_filter/content/common/document_load_statistics.h File components/subresource_filter/content/common/document_load_statistics.h (right): https://codereview.chromium.org/2600253002/diff/20001/components/subresource_filter/content/common/document_load_statistics.h#newcode8 components/subresource_filter/content/common/document_load_statistics.h:8: #include ...
3 years, 11 months ago (2016-12-28 13:56:06 UTC) #5
pkalinnikov
Added checks to browsertests. PTAL again.
3 years, 11 months ago (2016-12-28 14:04:50 UTC) #6
pkalinnikov
Thanks! https://codereview.chromium.org/2600253002/diff/20001/components/subresource_filter/content/common/document_load_statistics.h File components/subresource_filter/content/common/document_load_statistics.h (right): https://codereview.chromium.org/2600253002/diff/20001/components/subresource_filter/content/common/document_load_statistics.h#newcode8 components/subresource_filter/content/common/document_load_statistics.h:8: #include <cstdint> On 2016/12/28 13:56:06, engedy wrote: > ...
3 years, 11 months ago (2016-12-28 14:28:52 UTC) #9
pkalinnikov
Hi Chris and Ilya, palmer@: Please review the IPC change in "subresource_filter_messages.h" and "document_load_statistics.h". isherman@: ...
3 years, 11 months ago (2016-12-28 14:34:46 UTC) #11
engedy
Still LGTM.
3 years, 11 months ago (2016-12-28 14:49:42 UTC) #12
Ilya Sherman
metrics lgtm
3 years, 11 months ago (2016-12-28 20:54:57 UTC) #13
palmer
lgtm https://codereview.chromium.org/2600253002/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc (right): https://codereview.chromium.org/2600253002/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode97 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:97: aggregated_document_statistics_.num_loads_total += statistics.num_loads_total; Do you care about potential ...
3 years, 11 months ago (2016-12-28 23:05:47 UTC) #14
pkalinnikov
Thanks! https://codereview.chromium.org/2600253002/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc (right): https://codereview.chromium.org/2600253002/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode97 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:97: aggregated_document_statistics_.num_loads_total += statistics.num_loads_total; On 2016/12/28 23:05:47, palmer wrote: ...
3 years, 11 months ago (2016-12-29 11:22:03 UTC) #15
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/2600253002/80001
3 years, 11 months ago (2016-12-29 23:54:45 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/363287)
3 years, 11 months ago (2016-12-30 00:51:36 UTC) #24
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/2600253002/80001
3 years, 11 months ago (2017-01-02 17:06:59 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/363548)
3 years, 11 months ago (2017-01-02 18:01:50 UTC) #28
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/2600253002/100001
3 years, 11 months ago (2017-01-09 08:54:17 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/366823)
3 years, 11 months ago (2017-01-09 09:43:42 UTC) #33
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/2600253002/100001
3 years, 11 months ago (2017-01-13 20:08:09 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/348230)
3 years, 11 months ago (2017-01-13 21:53:12 UTC) #37
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/2600253002/100001
3 years, 11 months ago (2017-01-13 23:07:45 UTC) #39
commit-bot: I haz the power
3 years, 11 months ago (2017-01-14 00:00:15 UTC) #42
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/828b1fae0b84215fdc1793a1a25e...

Powered by Google App Engine
This is Rietveld 408576698