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

Side by Side Diff: base/process/process_metrics.h

Issue 2692273008: Hacky slashy (Closed)
Patch Set: wip Created 3 years, 10 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 // This file contains routines for gathering resource statistics for processes 5 // This file contains routines for gathering resource statistics for processes
6 // running on the system. 6 // running on the system.
7 7
8 #ifndef BASE_PROCESS_PROCESS_METRICS_H_ 8 #ifndef BASE_PROCESS_PROCESS_METRICS_H_
9 #define BASE_PROCESS_PROCESS_METRICS_H_ 9 #define BASE_PROCESS_PROCESS_METRICS_H_
10 10
(...skipping 14 matching lines...) Expand all
25 #if defined(OS_MACOSX) 25 #if defined(OS_MACOSX)
26 #include <mach/mach.h> 26 #include <mach/mach.h>
27 #include "base/process/port_provider_mac.h" 27 #include "base/process/port_provider_mac.h"
28 #endif 28 #endif
29 29
30 namespace base { 30 namespace base {
31 31
32 #if defined(OS_WIN) 32 #if defined(OS_WIN)
33 struct IoCounters : public IO_COUNTERS { 33 struct IoCounters : public IO_COUNTERS {
34 }; 34 };
35 #elif defined(OS_POSIX) 35 #elif defined(OS_POSIX) || defined(OS_FUCHSIA)
36 struct IoCounters { 36 struct IoCounters {
37 uint64_t ReadOperationCount; 37 uint64_t ReadOperationCount;
38 uint64_t WriteOperationCount; 38 uint64_t WriteOperationCount;
39 uint64_t OtherOperationCount; 39 uint64_t OtherOperationCount;
40 uint64_t ReadTransferCount; 40 uint64_t ReadTransferCount;
41 uint64_t WriteTransferCount; 41 uint64_t WriteTransferCount;
42 uint64_t OtherTransferCount; 42 uint64_t OtherTransferCount;
43 }; 43 };
44 #endif 44 #endif
45 45
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 SystemDiskInfo disk_info_; 430 SystemDiskInfo disk_info_;
431 #endif 431 #endif
432 #if defined(OS_CHROMEOS) 432 #if defined(OS_CHROMEOS)
433 SwapInfo swap_info_; 433 SwapInfo swap_info_;
434 #endif 434 #endif
435 }; 435 };
436 436
437 } // namespace base 437 } // namespace base
438 438
439 #endif // BASE_PROCESS_PROCESS_METRICS_H_ 439 #endif // BASE_PROCESS_PROCESS_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698