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

Side by Side Diff: base/sys_info.cc

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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/sys_info.h" 5 #include "base/sys_info.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // static 47 // static
48 int64 SysInfo::Uptime() { 48 int64 SysInfo::Uptime() {
49 // This code relies on an implementation detail of TimeTicks::Now() - that 49 // This code relies on an implementation detail of TimeTicks::Now() - that
50 // its return value happens to coincide with the system uptime value in 50 // its return value happens to coincide with the system uptime value in
51 // microseconds, on Win/Mac/iOS/Linux/ChromeOS and Android. 51 // microseconds, on Win/Mac/iOS/Linux/ChromeOS and Android.
52 int64 uptime_in_microseconds = TimeTicks::Now().ToInternalValue(); 52 int64 uptime_in_microseconds = TimeTicks::Now().ToInternalValue();
53 return uptime_in_microseconds / 1000; 53 return uptime_in_microseconds / 1000;
54 } 54 }
55 55
56 #if !defined(OS_WIN)
rvargas (doing something else) 2015/03/12 22:01:11 Given that this would have to be modified every ti
Dan Beam 2015/03/13 19:31:31 put into _posix.cc for now, which originally was b
57 bool SysInfo::HasSeekPenalty(const FilePath& path, bool* has_seek_penalty) {
58 return false;
59 }
60 #endif
61
56 } // namespace base 62 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698