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

Unified Diff: content/renderer/scheduler/task_queue_selector.h

Issue 681793003: scheduler: Add support for tracing scheduler state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test. Created 6 years, 1 month 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 | « content/renderer/scheduler/task_queue_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/scheduler/task_queue_selector.h
diff --git a/content/renderer/scheduler/task_queue_selector.h b/content/renderer/scheduler/task_queue_selector.h
index afab36aa1a5f512c01cf8089440c9e6eb82fd4da..fe20847ad63669639c6dc4dae7892bf6eba4abf9 100644
--- a/content/renderer/scheduler/task_queue_selector.h
+++ b/content/renderer/scheduler/task_queue_selector.h
@@ -11,7 +11,10 @@
namespace base {
class TaskQueue;
-}
+namespace debug {
+class TracedValue;
+} // namespace debug
+} // namespace base
namespace content {
@@ -30,6 +33,9 @@ class TaskQueueSelector {
//
// This function is called on the main thread.
virtual bool SelectWorkQueueToService(size_t* out_queue_index) = 0;
+
+ // Serialize the selector state for tracing.
+ virtual void AsValueInto(base::debug::TracedValue* state) const = 0;
};
} // namespace content
« no previous file with comments | « content/renderer/scheduler/task_queue_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698