X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fperformance_monitor%2Fprocess_metrics_history.cc;h=30bd921d11d605e4a1361a104304383f16d05c80;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=7c724e0b618cf31af29c6ec375cba10537988c7c;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/performance_monitor/process_metrics_history.cc b/src/chrome/browser/performance_monitor/process_metrics_history.cc index 7c724e0..30bd921 100644 --- a/src/chrome/browser/performance_monitor/process_metrics_history.cc +++ b/src/chrome/browser/performance_monitor/process_metrics_history.cc @@ -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" @@ -17,6 +16,10 @@ 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),