Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / base / process / process_metrics.h
index 1567133..3eb3604 100644 (file)
@@ -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,9 +206,11 @@ class BASE_EXPORT ProcessMetrics {
   TimeTicks last_cpu_time_;
   int64 last_system_time_;
 
+#if defined(OS_MACOSX) || defined(OS_LINUX)
   // Same thing for idle wakeups.
   TimeTicks last_idle_wakeups_time_;
-  int64 last_absolute_idle_wakeups_;
+  uint64 last_absolute_idle_wakeups_;
+#endif
 
 #if !defined(OS_IOS)
 #if defined(OS_MACOSX)
@@ -320,7 +326,7 @@ struct BASE_EXPORT SystemDiskInfo {
   uint64 weighted_io_time;
 };
 
-// Checks whether the candidate string is a valid disk name, [sh]d[a-z]+
+// Checks whether the candidate string is a valid disk name, [hsv]d[a-z]+
 // for a generic disk or mmcblk[0-9]+ for the MMC case.
 // Names of disk partitions (e.g. sda1) are not valid.
 BASE_EXPORT bool IsValidDiskName(const std::string& candidate);