Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / performance_monitor / process_metrics_history.cc
index 7c724e0..30bd921 100644 (file)
@@ -8,7 +8,6 @@
 #include "base/metrics/histogram.h"
 #include "base/process/process_metrics.h"
 
-#include "chrome/browser/performance_monitor/constants.h"
 #include "chrome/browser/performance_monitor/process_metrics_history.h"
 #if defined(OS_MACOSX)
 #include "content/public/browser/browser_child_process_host.h"
 
 namespace performance_monitor {
 
+// If a process is consistently above this CPU utilization percentage over time,
+// we consider it as high and may take action.
+const float kHighCPUUtilizationThreshold = 90.0f;
+
 ProcessMetricsHistory::ProcessMetricsHistory()
     : process_handle_(0),
       process_type_(content::PROCESS_TYPE_UNKNOWN),