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

Unified Diff: chrome/browser/performance_monitor/constants.h

Issue 547063003: Remove the unmaintained performance monitor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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/BUILD.gn ('k') | chrome/browser/performance_monitor/constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/performance_monitor/constants.h
diff --git a/chrome/browser/performance_monitor/constants.h b/chrome/browser/performance_monitor/constants.h
deleted file mode 100644
index 84dfb8ea775f3463e3dae46e0127e50dd6e34733..0000000000000000000000000000000000000000
--- a/chrome/browser/performance_monitor/constants.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_
-#define CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_
-
-#include "base/basictypes.h"
-#include "base/time/time.h"
-
-namespace performance_monitor {
-
-// Constants which are used by the PerformanceMonitor and its related classes.
-// The constants should be documented alongside the definition of their values
-// in the .cc file.
-
-extern const char kMetricNotFoundError[];
-extern const char kProcessChromeAggregate[];
-
-// State tokens
-extern const char kStateChromeVersion[];
-extern const char kStateProfilePrefix[];
-
-// The interval the watched processes are sampled for performance metrics.
-const int kSampleIntervalInSeconds = 10;
-// The default interval at which PerformanceMonitor performs its timed
-// collections; this can be overridden by using the kPerformanceMonitorGathering
-// switch with an associated (positive integer) value.
-const int kDefaultGatherIntervalInSeconds = 120;
-
-// Unit values (for use in metric, and on the UI side).
-
-// Memory measurements
-const int64 kBytesPerKilobyte = 1 << 10;
-const int64 kBytesPerMegabyte = kBytesPerKilobyte * (1 << 10);
-const int64 kBytesPerGigabyte = kBytesPerMegabyte * (1 << 10);
-const int64 kBytesPerTerabyte = kBytesPerGigabyte * (1 << 10);
-
-// Time measurements - Most of these are imported from base/time/time.h
-// These units are used for display (and it's related calculations), not for
-// any mathematical analysis. Thus we can estimate for values without an exact
-// conversion.
-const int64 kMicrosecondsPerMonth = base::Time::kMicrosecondsPerDay * 30;
-const int64 kMicrosecondsPerYear = base::Time::kMicrosecondsPerDay * 365;
-
-// Performance alert thresholds
-
-// 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;
-} // namespace performance_monitor
-
-#endif // CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_
« no previous file with comments | « chrome/browser/performance_monitor/BUILD.gn ('k') | chrome/browser/performance_monitor/constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698