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

Unified Diff: chrome/browser/task_management/task_manager_interface.h

Issue 1374283003: Reporting top cpu and memory consumers via rappor on chromeos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: browser/gpu stats by UMA histograms, buckets for cpu cores. Created 5 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
Index: chrome/browser/task_management/task_manager_interface.h
diff --git a/chrome/browser/task_management/task_manager_interface.h b/chrome/browser/task_management/task_manager_interface.h
index a58b7e72ff988e23f9c4465410ce9dd72f7fb753..d0cd0a57a269f8dac9fa7b5dd548619336f6a584 100644
--- a/chrome/browser/task_management/task_manager_interface.h
+++ b/chrome/browser/task_management/task_manager_interface.h
@@ -79,9 +79,17 @@ class TaskManagerInterface {
int64* current,
int64* peak) const = 0;
+ // Returns whether the task with |task_id| is running on a backgrounded
+ // process.
+ virtual bool IsTaskOnBackgroundedProcess(TaskId task_id) const = 0;
+
// Returns the title of the task with |task_id|.
virtual const base::string16& GetTitle(TaskId task_id) const = 0;
+ // Returns the Rappor sample name of the task with |task_id| that can be used
+ // to record a sample of this task via RapporService.
+ virtual const std::string& GetRapporSampleName(TaskId task_id) const = 0;
+
// Returns the name of the profile associated with the browser context of the
// render view host that the task with |task_id| represents (if that task
// represents a renderer).

Powered by Google App Engine
This is Rietveld 408576698