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

Unified Diff: base/sys_info.h

Issue 999623002: metrics/base: log whether drives have seek penalties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 years, 9 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/sys_info.cc » ('j') | base/sys_info.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info.h
diff --git a/base/sys_info.h b/base/sys_info.h
index 660343d06f76831b2f6dceff35cce4bb40e212c0..f639ae4958cce075d11d4b09b185780d1be31585 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -48,6 +48,11 @@ 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) or
+ // |has_seek_penalty| is NULL.
rvargas (doing something else) 2015/03/12 22:01:11 The second condition sounds like a DCHECK to me.
Dan Beam 2015/03/13 19:31:31 Done.
+ static bool HasSeekPenalty(const FilePath& path, bool* has_seek_penalty);
+
// Returns system uptime in milliseconds.
static int64 Uptime();
« no previous file with comments | « no previous file | base/sys_info.cc » ('j') | base/sys_info.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698