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

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: Added units tag to histogram xml 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
« no previous file with comments | « no previous file | base/process/process_metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
Alexei Svitkine (slow) 2013/10/24 14:52:00 Mention what the consistent values actually are.
oystein (OOO til 10th of July) 2013/10/24 15:01:06 Actually meant to write "values" rather than "retu
Alexei Svitkine (slow) 2013/10/24 15:13:33 Not necessarily repeating, you can refer to it - j
oystein (OOO til 10th of July) 2013/10/24 15:25:51 Good point; done.
+ 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698