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

Unified Diff: base/task_scheduler/task_scheduler.h

Issue 2420973002: Plumb Task Scheduler Histograms to the Task Scheduler Internals Page (Closed)
Patch Set: CR Feedback Created 4 years, 2 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: base/task_scheduler/task_scheduler.h
diff --git a/base/task_scheduler/task_scheduler.h b/base/task_scheduler/task_scheduler.h
index 91a608ec746e65e2ebe85475ac377d0d845f4ba9..fe3d5e53ee919fe4ebfedbd1b10ef06ad6c3283b 100644
--- a/base/task_scheduler/task_scheduler.h
+++ b/base/task_scheduler/task_scheduler.h
@@ -20,6 +20,7 @@ class Location;
namespace base {
+class HistogramBase;
class SchedulerWorkerPoolParams;
// Interface for a task scheduler and static methods to manage the instance used
@@ -48,6 +49,9 @@ class BASE_EXPORT TaskScheduler {
const TaskTraits& traits,
ExecutionMode execution_mode) = 0;
+ // Returns a vector of all histograms available in this task scheduler.
+ virtual std::vector<const HistogramBase*> GetHistograms() const = 0;
+
// Synchronously shuts down the scheduler. Once this is called, only tasks
// posted with the BLOCK_SHUTDOWN behavior will be run. When this returns:
// - All SKIP_ON_SHUTDOWN tasks that were already running have completed their

Powered by Google App Engine
This is Rietveld 408576698