summaryrefslogtreecommitdiffstats
path: root/base/sys_info.h
diff options
context:
space:
mode:
authordbeam <dbeam@chromium.org>2015-03-17 19:23:35 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-18 02:24:11 +0000
commit64c37847c51804dc237875e691c8ff95b6d25edd (patch)
tree2f59cd900999a3f3197e6e41650e472c95a5b5c9 /base/sys_info.h
parent98f9a6bdb1110654e8c6eecc74aa437b8a6b89c1 (diff)
downloadchromium_src-64c37847c51804dc237875e691c8ff95b6d25edd.zip
chromium_src-64c37847c51804dc237875e691c8ff95b6d25edd.tar.gz
chromium_src-64c37847c51804dc237875e691c8ff95b6d25edd.tar.bz2
metrics/base: log whether drives have seek penalties.
Only on Win 7+ for now. R=rvargas@chromium.org,mpearson@chromium.org BUG=463209 Review URL: https://codereview.chromium.org/999623002 Cr-Commit-Position: refs/heads/master@{#321056}
Diffstat (limited to 'base/sys_info.h')
-rw-r--r--base/sys_info.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/sys_info.h b/base/sys_info.h
index 660343d..d3476d9 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -48,6 +48,10 @@ class BASE_EXPORT SysInfo {
// or -1 on failure.
static int64 AmountOfFreeDiskSpace(const FilePath& path);
+ // Determine whether the device that services |path| has a seek penalty.
+ // Returns false if it couldn't be determined (e.g., |path| doesn't exist).
+ static bool HasSeekPenalty(const FilePath& path, bool* has_seek_penalty);
+
// Returns system uptime in milliseconds.
static int64 Uptime();