| Index: components/dom_distiller/core/distiller_page.cc
|
| diff --git a/components/dom_distiller/core/distiller_page.cc b/components/dom_distiller/core/distiller_page.cc
|
| index b8bcd28ff8ea524faed199e3a185be1c86dfd71c..6d9f8af80ce1d7f5bc06dcb401c30495a3df5bad 100644
|
| --- a/components/dom_distiller/core/distiller_page.cc
|
| +++ b/components/dom_distiller/core/distiller_page.cc
|
| @@ -88,6 +88,7 @@ void DistillerPage::DistillPage(
|
| // the callback to OnDistillationDone happens.
|
| ready_ = false;
|
| distiller_page_callback_ = callback;
|
| + distillation_start = base::TimeTicks::Now();
|
| DistillPageImpl(gurl, GetDistillerScriptWithOptions(options,
|
| StringifyOutput(),
|
| CreateNewContext()));
|
| @@ -110,6 +111,11 @@ void DistillerPage::OnDistillationDone(const GURL& page_url,
|
| if (!found_content) {
|
| DVLOG(1) << "Unable to parse DomDistillerResult.";
|
| } else {
|
| + base::TimeDelta distillation_time =
|
| + base::TimeTicks::Now() - distillation_start;
|
| + UMA_HISTOGRAM_TIMES("DomDistiller.Time.DistillPage", distillation_time);
|
| + VLOG(1) << "DomDistiller.Time.DistillPage = " << distillation_time;
|
| +
|
| if (distiller_result->has_timing_info()) {
|
| const dom_distiller::proto::TimingInfo& timing =
|
| distiller_result->timing_info();
|
| @@ -139,6 +145,8 @@ void DistillerPage::OnDistillationDone(const GURL& page_url,
|
| UMA_HISTOGRAM_TIMES(
|
| "DomDistiller.Time.DistillationTotal",
|
| base::TimeDelta::FromMillisecondsD(timing.total_time()));
|
| + VLOG(1) << "DomDistiller.Time.DistillationTotal = " <<
|
| + base::TimeDelta::FromMillisecondsD(timing.total_time());
|
| }
|
| }
|
| if (distiller_result->has_statistics_info()) {
|
|
|