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

Unified Diff: third_party/WebKit/Source/platform/scheduler/child/scheduler_helper.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
Index: third_party/WebKit/Source/platform/scheduler/child/scheduler_helper.h
diff --git a/third_party/WebKit/Source/platform/scheduler/child/scheduler_helper.h b/third_party/WebKit/Source/platform/scheduler/child/scheduler_helper.h
index 3a62d523cb115f7e3525062b30452e51e1838c52..4f73bf1a6b46507686b11973c63346f02ad64f4d 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/scheduler_helper.h
+++ b/third_party/WebKit/Source/platform/scheduler/child/scheduler_helper.h
@@ -30,6 +30,10 @@ class BLINK_PLATFORM_EXPORT SchedulerHelper
const char* disabled_by_default_verbose_tracing_category);
~SchedulerHelper() override;
+ // There is a small overhead to recording task delay histograms, we may not
+ // wish to do this on all threads.
+ void SetRecordTaskDelayHistograms(bool record_task_delay_histograms);
+
// TaskQueueManager::Observer implementation:
void OnUnregisterTaskQueue(const scoped_refptr<TaskQueue>& queue) override;
void OnTriedToExecuteBlockedTask(const TaskQueue& queue,

Powered by Google App Engine
This is Rietveld 408576698