New issue
Advanced search Search tips

Issue 630779 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Jul 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Log the translation end-to-end latency

Project Member Reported by ftang@chromium.org, Jul 22 2016

Issue description

This is needed to understand the latency by Google Translate.

We should log the time between the starting of
TranslateManager::TranslatePage
and the starting of
TranslateManager::PageTranslated


 

Comment 1 by ftang@chromium.org, Jul 22 2016

some code to consider

from https://cs.chromium.org/chromium/src/chrome/browser/chromeos/boot_times_recorder.cc?sq=package:chromium&dr=CSs&rcl=1469200610&l=279

  base::Time first = base::TimeTicks::Now();
....
  base::Time last = base::TimeTicks::Now();
...
  base::TimeDelta total = last - first;
  base::HistogramBase* total_hist = base::Histogram::FactoryTimeGet(
      uma_name,
      base::TimeDelta::FromMilliseconds(kMinTimeMillis),
      base::TimeDelta::FromMilliseconds(kMaxTimeMillis),
      kNumBuckets,
      base::HistogramBase::kUmaTargetedHistogramFlag);
  total_hist->AddTime(total);

Comment 2 by ftang@chromium.org, Jul 22 2016

Components: UI>Browser>Translate
UMA_HISTOGRAM_MEDIUM_TIMES

Comment 3 by ftang@chromium.org, Jul 23 2016

Looks like this is not necessary. Can be done by 
 "Translate.TimeToBeReady";
 "Translate.TimeToLoad";
 "Translate.TimeToTranslate";

already
FYI, here is a document on the metrics; https://docs.google.com/a/google.com/document/d/1v4V8WHYuP8W-EBE-uYV1ertD7Wo0nMz4xOJxlTr1_ck/edit?usp=sharing
But sorry, this document is readable only for Googlers.

Comment 5 by ftang@chromium.org, Jul 25 2016

Status: WontFix (was: Assigned)
Mark it WontFix since we already have what we need
Components: -UI>Browser>Translate UI>Browser>Language>Translate

Sign in to add a comment