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

Unified Diff: chrome/browser/performance_monitor/metric_details.cc

Issue 10855109: Fix static initialization in CPM Metric Details (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Or...we could do this the easy way Created 8 years, 4 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 | « chrome/browser/performance_monitor/constants.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/performance_monitor/metric_details.cc
diff --git a/chrome/browser/performance_monitor/metric_details.cc b/chrome/browser/performance_monitor/metric_details.cc
index 613bfdfe96d117763a8a1d7962a56cce3228361f..9b5f1db62ef826823deaf3671150a632cd66b6a7 100644
--- a/chrome/browser/performance_monitor/metric_details.cc
+++ b/chrome/browser/performance_monitor/metric_details.cc
@@ -10,6 +10,54 @@
namespace performance_monitor {
namespace {
+// Metric details follow.
+// All metric details have the following constants:
+// - Name
+// - Description
+// - Units
+// - TickSize (the smallest possible maximum which will be viewed in the ui.)
+
+// CPU Usage
+const char kMetricCPUUsageName[] = "CPU Usage";
+const char kMetricCPUUsageDescription[] = "The CPU usage measured in percent.";
+const char kMetricCPUUsageUnits[] = "percent";
+const double kMetricCPUUsageTickSize = 100.0;
+
+// Private Memory Usage
+const char kMetricPrivateMemoryUsageName[] = "Private Memory Usage";
+const char kMetricPrivateMemoryUsageDescription[] =
+ "The total private memory usage of all chrome processes measured in bytes.";
+const char kMetricPrivateMemoryUsageUnits[] = "bytes";
+const double kMetricPrivateMemoryUsageTickSize = 10000000.0;
+
+// Shared Memory Usage
+const char kMetricSharedMemoryUsageName[] = "Shared Memory Usage";
+const char kMetricSharedMemoryUsageDescription[] =
+ "The total shared memory usage of all chrome processes measured in bytes.";
+const char kMetricSharedMemoryUsageUnits[] = "bytes";
+const double kMetricSharedMemoryUsageTickSize = 10000000.0;
+
+// Startup Time
+const char kMetricStartupTimeName[] = "Startup Time";
+const char kMetricStartupTimeDescription[] =
+ "The startup time measured in microseconds";
+const char kMetricStartupTimeUnits[] = "microseconds";
+const double kMetricStartupTimeTickSize = 5000000;
+
+// Test Startup Time
+const char kMetricTestStartupTimeName[] = "Test Startup Time";
+const char kMetricTestStartupTimeDescription[] =
+ "The startup time of test startups measured in microseconds";
+const char kMetricTestStartupTimeUnits[] = "microseconds";
+const double kMetricTestStartupTimeTickSize = 5000000;
+
+// Session Restore Time
+const char kMetricSessionRestoreTimeName[] = "Session Restore Time";
+const char kMetricSessionRestoreTimeDescription[] =
+ "The session restore time measured in microseconds";
+const char kMetricSessionRestoreTimeUnits[] = "microseconds";
+const double kMetricSessionRestoreTimeTickSize = 5000000;
+
// Keep this array synced with MetricTypes in the header file.
// TODO(mtytel): i18n.
const MetricDetails kMetricDetailsList[] = {
« no previous file with comments | « chrome/browser/performance_monitor/constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698