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

Unified Diff: base/process/process_metrics.h

Issue 29873002: PerformanceMonitor: Add a new UMA histograms to track average CPU utilization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 2 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 f6b225fa94fab2603fdcc51ab425e9dadcc90a4e..326338781f99b3d001fcc92521df9e9c8b8fc5f0 100644
--- a/base/process/process_metrics.h
+++ b/base/process/process_metrics.h
@@ -168,6 +168,10 @@ class BASE_EXPORT ProcessMetrics {
// method returns 50.
double GetCPUUsage();
+ // Same as GetCPUUsage(), but will return consistent returns on all platforms
+ // including Windows.
+ double GetPlatformIndependentCPUUsage();
+
// Retrieves accounting information for all I/O operations performed by the
// process.
// If IO information is retrieved successfully, the function returns true
« no previous file with comments | « no previous file | base/process/process_metrics.cc » ('j') | chrome/browser/performance_monitor/process_metrics_history.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698