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

Unified Diff: content/renderer/scheduler/renderer_scheduler_impl.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 | « no previous file | content/renderer/scheduler/renderer_scheduler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/scheduler/renderer_scheduler_impl.h
diff --git a/content/renderer/scheduler/renderer_scheduler_impl.h b/content/renderer/scheduler/renderer_scheduler_impl.h
index ee50eb0e40007e4529589b9c1744c407c3410707..ab84c07aaf709723007c7f68d26cf6eefd4ea8a5 100644
--- a/content/renderer/scheduler/renderer_scheduler_impl.h
+++ b/content/renderer/scheduler/renderer_scheduler_impl.h
@@ -12,6 +12,12 @@
#include "content/renderer/scheduler/single_thread_idle_task_runner.h"
#include "content/renderer/scheduler/task_queue_manager.h"
+namespace base {
+namespace debug {
+class ConvertableToTraceFormat;
+}
+}
+
namespace content {
class RendererTaskQueueSelector;
@@ -74,6 +80,12 @@ class CONTENT_EXPORT RendererSchedulerImpl : public RendererScheduler {
DISALLOW_COPY_AND_ASSIGN(PollableNeedsUpdateFlag);
};
+ // Returns the serialized scheduler state for tracing.
+ scoped_refptr<base::debug::ConvertableToTraceFormat> AsValueLocked(
+ base::TimeTicks optional_now) const;
+ static const char* TaskQueueIdToString(QueueId queue_id);
+ static const char* PolicyToString(Policy policy);
+
// The time we should stay in CompositorPriority mode for after a touch event.
static const int kCompositorPriorityAfterTouchMillis = 100;
« no previous file with comments | « no previous file | content/renderer/scheduler/renderer_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698