| Index: third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h
|
| diff --git a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h
|
| index 37c331fbe8eb9427cc835f50f392b5631d4d110b..6b4305ea49243ada10b507e7e5e4814f9983a4b9 100644
|
| --- a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h
|
| +++ b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h
|
| @@ -143,6 +143,10 @@ class BLINK_PLATFORM_EXPORT TaskQueueManager
|
| // Removes all canceled delayed tasks.
|
| void SweepCanceledDelayedTasks();
|
|
|
| + // There is a small overhead to recording task delay histograms. If you don't
|
| + // need them, you can turn them off.
|
| + void SetRecordTaskDelayHistograms(bool record_task_delay_histograms);
|
| +
|
| private:
|
| friend class LazyNow;
|
| friend class internal::TaskQueueImpl;
|
| @@ -246,6 +250,8 @@ class BLINK_PLATFORM_EXPORT TaskQueueManager
|
| mutable base::Lock other_thread_lock_;
|
| bool other_thread_pending_wakeup_;
|
|
|
| + bool record_task_delay_histograms_;
|
| +
|
| int work_batch_size_;
|
| size_t task_count_;
|
|
|
|
|