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
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
Balazs, please take an initial look.
I will add the new histograms to the browsertest shortly. Do you see any better
way to test it? I think it's already tested enough in the agent's unittests.
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
3 years, 11 months ago
(2016-12-28 14:04:50 UTC)
#6
Added checks to browsertests. PTAL again.
pkalinnikov
Description was changed from ========== Aggregate DocumentSubresourceFilter counters on page level. BUG=609747 ========== to ========== ...
3 years, 11 months ago
(2016-12-28 14:08:38 UTC)
#7
Description was changed from
==========
Aggregate DocumentSubresourceFilter counters on page level.
BUG=609747
==========
to
==========
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.
BUG=609747
==========
pkalinnikov
Description was changed from ========== Aggregate DocumentSubresourceFilter counters on page level. Factor out statistics about ...
3 years, 11 months ago
(2016-12-28 14:10:10 UTC)
#8
Description was changed from
==========
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.
BUG=609747
==========
to
==========
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
==========
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
Hi Chris and Ilya,
palmer@: Please review the IPC change in "subresource_filter_messages.h" and
"document_load_statistics.h".
isherman@: Please review the changes in "histograms.xml".
Thank you!
engedy
Still LGTM.
3 years, 11 months ago
(2016-12-28 14:49:42 UTC)
#12
Still LGTM.
Ilya Sherman
metrics lgtm
3 years, 11 months ago
(2016-12-28 20:54:57 UTC)
#13
metrics lgtm
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
lgtm
https://codereview.chromium.org/2600253002/diff/60001/components/subresource_...
File
components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
(right):
https://codereview.chromium.org/2600253002/diff/60001/components/subresource_...
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 integer overflow here? (Not from a security
perspective, which is how I usually bring it up, but from a correctness
perspective.) Maybe it's super rare, or the noise it would create in your
measurements would be easily filterable, in which case maybe you don't care.
Just wondering.
3 years, 11 months ago
(2016-12-29 11:22:03 UTC)
#15
Thanks!
https://codereview.chromium.org/2600253002/diff/60001/components/subresource_...
File
components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
(right):
https://codereview.chromium.org/2600253002/diff/60001/components/subresource_...
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:
> Do you care about potential integer overflow here? (Not from a security
> perspective, which is how I usually bring it up, but from a correctness
> perspective.) Maybe it's super rare, or the noise it would create in your
> measurements would be easily filterable, in which case maybe you don't care.
> Just wondering.
An overflow can occur if a page has > 2 bln. subresources. We think that the
chances to encounter such a page are negligible, and we can tolerate that. Added
a note to be explicit about that.
pkalinnikov
The CQ bit was checked by pkalinnikov@chromium.org to run a CQ dry run
3 years, 11 months ago
(2016-12-29 11:22:21 UTC)
#16
Dry run: 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/363081)
3 years, 11 months ago
(2016-12-29 12:07:10 UTC)
#19
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
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
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
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
CQ is committing da patch. Bot data: {"patchset_id": 100001, "attempt_start_ts": 1484348831830320, "parent_rev": "790e4f0610545c7e41ab4642e7856b058687e1e6", "commit_rev": "828b1fae0b84215fdc1793a1a25ea3dd09d7bd2d"}
3 years, 11 months ago
(2017-01-13 23:59:43 UTC)
#40
CQ is committing da patch.
Bot data: {"patchset_id": 100001, "attempt_start_ts": 1484348831830320,
"parent_rev": "790e4f0610545c7e41ab4642e7856b058687e1e6", "commit_rev":
"828b1fae0b84215fdc1793a1a25ea3dd09d7bd2d"}
commit-bot: I haz the power
Description was changed from ========== Aggregate DocumentSubresourceFilter counters on page level. Factor out statistics about ...
3 years, 11 months ago
(2017-01-14 00:00:13 UTC)
#41
Message was sent while issue was closed.
Description was changed from
==========
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
==========
to
==========
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/+/828b1fae0b84215fdc1793a1a25e...
==========
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/828b1fae0b84215fdc1793a1a25ea3dd09d7bd2d
3 years, 11 months ago
(2017-01-14 00:00:15 UTC)
#42
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
Base URL:
Comments: 16