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

Unified Diff: chrome/browser/task_management/sampling/task_group.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: Removed arbitrary given weights 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/sampling/task_group.h
diff --git a/chrome/browser/task_management/sampling/task_group.h b/chrome/browser/task_management/sampling/task_group.h
index 6f882d00a27dc207dbede79b68a898a87aa73b21..c829ccf85c637598f9eaef637106d001c5c11b78 100644
--- a/chrome/browser/task_management/sampling/task_group.h
+++ b/chrome/browser/task_management/sampling/task_group.h
@@ -54,6 +54,7 @@ class TaskGroup {
int64 physical_bytes() const { return memory_usage_.physical_bytes; }
int64 gpu_memory() const { return gpu_memory_; }
bool gpu_memory_has_duplicates() const { return gpu_memory_has_duplicates_; }
+ bool is_backgrounded() const { return is_backgrounded_; }
#if defined(OS_WIN)
int64 gdi_current_handles() const { return gdi_current_handles_; }
@@ -83,6 +84,8 @@ class TaskGroup {
void OnIdleWakeupsRefreshDone(int idle_wakeups_per_second);
+ void OnProcessPriorityDone(bool is_backgrounded);
+
// The process' handle and ID.
base::ProcessHandle process_handle_;
base::ProcessId process_id_;
@@ -109,6 +112,7 @@ class TaskGroup {
#endif // !defined(DISABLE_NACL)
int idle_wakeups_per_second_;
bool gpu_memory_has_duplicates_;
+ bool is_backgrounded_;
// Always keep this the last member of this class so that it's the first to be
// destroyed.

Powered by Google App Engine
This is Rietveld 408576698