summaryrefslogtreecommitdiffstats
path: root/base/sys_info.h
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-29 01:04:09 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-29 01:04:09 +0000
commit0f24e53eb19d7662374fa84e2df1ebda4a2ae64e (patch)
tree8dd9a4e1f93a152481047c89a3b31dd60353340f /base/sys_info.h
parent30faac90dedf380f50bb2beab7234662c11ea1d0 (diff)
downloadchromium_src-0f24e53eb19d7662374fa84e2df1ebda4a2ae64e.zip
chromium_src-0f24e53eb19d7662374fa84e2df1ebda4a2ae64e.tar.gz
chromium_src-0f24e53eb19d7662374fa84e2df1ebda4a2ae64e.tar.bz2
Startup perf stability: only record stats 7 minutes after system start
Attempt to stabilize startup pert UMA measurement by waiting 7 minutes after system start. The aim is to not record cases where Chrome is auto-started i.e. when the system is under IO load causing stats to be skewed. BUG=157549 TEST=None Review URL: https://chromiumcodereview.appspot.com/11260012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164581 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info.h')
-rw-r--r--base/sys_info.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/sys_info.h b/base/sys_info.h
index e48c5a3..97b17c4 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -35,6 +35,9 @@ class BASE_EXPORT SysInfo {
// or -1 on failure.
static int64 AmountOfFreeDiskSpace(const FilePath& path);
+ // Returns system uptime in milliseconds.
+ static int64 Uptime();
+
// Returns the name of the host operating system.
static std::string OperatingSystemName();