TaskCostEstimator samples Now |
|
Issue descriptionThe TaskCostEstimator uses the old base::MessageLoop::TaskObserver API and it samples Now in WillProcessTask & DidProcessTask. This seems wasteful since we have TaskTimeObservers. Unfortunately TaskTimeObservers are a SequenceManager level API but TaskCostEstimator needs a TaskQueue level API. Alternatively we could consider a map of TaskQueue* to TaskCostEstimator held by MainThreadSchedulerImpl and referenced by MainThreadSchedulerImpl::OnTaskStarted / OnTaskCompleted. |
|
►
Sign in to add a comment |
|
Comment 1 by skyos...@chromium.org
, Oct 30