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

Unified Diff: components/subresource_filter/content/renderer/subresource_filter_agent.cc

Issue 2581043003: Add page-level aggregation of SubresourceFilter time metrics. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/subresource_filter/content/renderer/subresource_filter_agent.cc
diff --git a/components/subresource_filter/content/renderer/subresource_filter_agent.cc b/components/subresource_filter/content/renderer/subresource_filter_agent.cc
index 05405c00b9a3b88998bed812659f29d7dc615c96..bcdf5c92f53c6ff3997c823d2bcc265939e57ada 100644
--- a/components/subresource_filter/content/renderer/subresource_filter_agent.cc
+++ b/components/subresource_filter/content/renderer/subresource_filter_agent.cc
@@ -113,6 +113,12 @@ void SubresourceFilterAgent::RecordHistogramsOnLoadFinished() {
statistics.evaluation_total_cpu_duration,
base::TimeDelta::FromMicroseconds(1), base::TimeDelta::FromSeconds(10),
50);
+
+ render_frame()->Send(
engedy 2016/12/19 10:18:42 Note that the unit test for this class is quite tr
pkalinnikov 2016/12/21 15:28:46 Done.
+ new SubresourceFilterHostMsg_DidAggregateEvaluationDuration(
+ render_frame()->GetRoutingID(),
+ statistics.evaluation_total_wall_duration,
+ statistics.evaluation_total_cpu_duration));
}
}

Powered by Google App Engine
This is Rietveld 408576698