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

Unified Diff: base/process/process_metrics.h

Issue 546193002: Add an 'Idle Wake Ups' metric to the Linux task manager, implement backend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wakeclean
Patch Set: Created 6 years, 3 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/process/process_metrics.h
diff --git a/base/process/process_metrics.h b/base/process/process_metrics.h
index 32843e8df77f31ba5891d6129a1d5e1ec46bded8..3eb3604b7a381a5514045d17fd882cf339e69303 100644
--- a/base/process/process_metrics.h
+++ b/base/process/process_metrics.h
@@ -193,6 +193,10 @@ class BASE_EXPORT ProcessMetrics {
bool GetWorkingSetKBytesTotmaps(WorkingSetKBytes *ws_usage) const;
#endif
+#if defined(OS_MACOSX) || defined(OS_LINUX)
+ int CalculateIdleWakeupsPerSecond(uint64 absolute_idle_wakeups);
+#endif
+
ProcessHandle process_;
int processor_count_;
@@ -202,7 +206,7 @@ class BASE_EXPORT ProcessMetrics {
TimeTicks last_cpu_time_;
int64 last_system_time_;
-#if defined(OS_MACOSX)
+#if defined(OS_MACOSX) || defined(OS_LINUX)
// Same thing for idle wakeups.
TimeTicks last_idle_wakeups_time_;
uint64 last_absolute_idle_wakeups_;

Powered by Google App Engine
This is Rietveld 408576698