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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h

Issue 2640303002: Add an api to disable recording task delay histogrames (Closed)
Patch Set: Fix bad merge Created 3 years, 11 months 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698